Skip to content

Instantly share code, notes, and snippets.

@dminnelli
Created May 25, 2017 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dminnelli/79e0beea13258fea3365428297d3a513 to your computer and use it in GitHub Desktop.
Save dminnelli/79e0beea13258fea3365428297d3a513 to your computer and use it in GitHub Desktop.
# 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