Created
December 11, 2015 18:56
-
-
Save JustinGrote/f32c2785b013b105566b to your computer and use it in GitHub Desktop.
Start-AADFullPasswordSync
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
$adConnector = (get-addomain).dnsroot | |
$aadConnector = (get-adsyncconnector | where {$_.subtype -match "Windows Azure Active Directory"})[0].name | |
Import-Module adsync | |
$c = Get-ADSyncConnector -Name $adConnector | |
$p = New-Object Microsoft.IdentityManagement.PowerShell.ObjectModel.ConfigurationParameter "Microsoft.Synchronize.ForceFullPasswordSync", String, ConnectorGlobal, $null, $null, $null | |
$p.Value = 1 | |
$c.GlobalParameters.Remove($p.Name) | |
$c.GlobalParameters.Add($p) | |
$c = Add-ADSyncConnector -Connector $c | |
Set-ADSyncAADPasswordSyncConfiguration -SourceConnector $adConnector -TargetConnector $aadConnector -Enable $false | |
Set-ADSyncAADPasswordSyncConfiguration -SourceConnector $adConnector -TargetConnector $aadConnector -Enable $true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment