Andreas
Andreas

Reputation: 553

Password Sync to Office 365 with AAD Connect does not work

I try to sync changed passwords to Office 365. On the beginning with the given tool on Windows 2012 it worked. But when I change a user's password, it does not sync it.

I found a script, often mentioned and so I tried it:

powershell script

But it does not help. I also tried

Start-ADSyncSyncCycle -PolicyType Initial

Start-ADSyncSyncCycle -PolicyType Delta

But nothing changed. I see a "Full Synchronization" in "Synchronization Service Manager".

Does anyone have an idea how to get that password-sync work?

Upvotes: 0

Views: 1587

Answers (2)

Andreas
Andreas

Reputation: 553

I had support from Microsoft now and they solved the issue wich the following lines on powershell:

Import-Module ADSync
$aadcon = Get-ADSyncConnector | Where {$_.Type -eq "Extensible2"}
Set-ADSyncAADPasswordSyncState -ConnectorName $aadcon.Name -Enable $True

As I understand, the flag to synchronize password of AD Connect was shows as enabled, but in the background it was not! The script set it manually.

Upvotes: 1

Randy Schuman
Randy Schuman

Reputation: 367

If your client release is before Feb 2016. Try these commands.

Login to the Directory Sync Server
Open PowerShell
Type Import-Module DirSync, and then press ENTER.
Type Start-OnlineCoexistenceSync, and then press ENTER.

For the newer client type Get-ADSyncConnectorRunStatus to see what the status is. If it is hung, you can type in Stop-ADSyncSyncCycle to stop it. You can also try reimporting the module in case the permissions got hosed up by typing Import-Module ADSync , then run your Start-ADSyncSyncCycle -PolicyType Delta or Start-ADSyncSyncCycle -PolicyType Initial commands. Do not run one command right after the other without checking the status to make sure it has completed.

Upvotes: 0

Related Questions