Last active
February 23, 2019 07:37
-
-
Save KentNordstrom/20013f355898dda16778d9c7623ff757 to your computer and use it in GitHub Desktop.
Script to Synchronize only the Sync Rules and no other object in the FIM Service MA Connector Space.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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