Office 365 Force Password Sync for accounts not updating

Copy and Past the following into notepad and revise the “yourdomain” fields and Save the file as c:\PassSync.PS1

Import-Module ADSync

$adConnector  = "yourdomain.local"

$aadConnector = "YourDomain.onmicrosoft.com - AAD"

$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

Open Powershell as Administrator

Run the following:

Connect-MSOLservice

clip_image001

Then either run the PassSync.PS1:

clip_image002

or cut and paste the contents of the script with your revisions into the powershell window and press enter:

clip_image003

You can confirm the password sync details using Event Viewer Application Viewer Event ID’s 657 and 656:

clip_image005

Comments

Popular posts from this blog

Office 365 Deployment Tool Office Download fails “Could not Install”

FRS to DFSR Post Cleanup “File Replication NtFrs Stopped”

Domain Migration SubinACL /Migratetodomain How To: