Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script to Synchronize only the Sync Rules and no other object in the FIM Service MA Connector Space.
<#
.SYNOPSIS
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
You can’t perform that action at this time.