Skip to content

Instantly share code, notes, and snippets.

Last active February 23, 2019 07:37
What would you like to do?
Script to Synchronize only the Sync Rules and no other object in the FIM Service MA Connector Space.
Script to update only synchronization rules.
Import-Module LithnetMiisAutomation
$MA = "FIMService"
$OldSyncRules = New-MVQuery -Attribute displayName -Operator IsPresent | Get-MVObject -ObjectType synchronizationRule
foreach($rule in $OldSyncRules)
{$void = Sync-CSObject (Get-CSObject -DN ($rule.CSMVLinks.ConnectorSpaceDN) -MA $MA) -Commit}
$NewSyncRules = Get-Disconnectors -MA $MA | ?{$_.ObjectType -eq 'SynchronizationRule'}
foreach($rule in $NewSyncRules)
{$void = Sync-CSObject (Get-CSObject -DN ($rule.DN) -MA $MA) -Commit}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment