Created
May 25, 2017 14:16
-
-
Save dminnelli/79e0beea13258fea3365428297d3a513 to your computer and use it in GitHub Desktop.
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
# Variables | |
$FIMServiceMA = "FIM Service MA" | |
if (!(Get-module LithnetMIISAutomation)) {Import-Module LithnetMIISAutomation} | |
$results = Get-MVObject -ObjectType synchronizationRule | |
foreach ($result in $results) | |
{ | |
Write-Host "Processing" $result.Attributes.displayName.Values.ValueString -BackgroundColor DarkGreen | |
# Take the MA Distinguished Name to the Connector Space object in the FIM Service MA CS | |
$ConnectorSpaceDN = $result.CSMVLinks.ConnectorSpaceDN | |
# Query the FIM Service MA CS entry and preview commit a Full Sync on the object | |
Get-CSObject -DN $ConnectorSpaceDN -MA $FIMServiceMA | Sync-CSObject -Commit | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment