Skip to content

Instantly share code, notes, and snippets.

@mattwoolnough
Created October 11, 2017 06:25
Show Gist options
  • Save mattwoolnough/de1e90320a0eed2cfeaa38d710ca6d2d to your computer and use it in GitHub Desktop.
Save mattwoolnough/de1e90320a0eed2cfeaa38d710ca6d2d to your computer and use it in GitHub Desktop.
Import-Module LithnetMIISAutomation
$SyncRules = Get-MVObject -ObjectType "synchronizationRule"
$FIMMA = "MIM MA"
ForEach ($Rule in $SyncRules)
{
$ConnectorSpaceDN = $Rule.CSMVLinks[0].ConnectorSpaceDN
Get-CSObject -DN $ConnectorSpaceDN -MA $FIMMA | Sync-CSObject -Commit
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment