tech-corner, microsoft-tech

Azure AD connect

Force password sync
Microsoft hovedkvarter logo

This tech tip is in English.

Ever wanted to force a password sync with Azure AD Connect ?

This is a simple way to do it.

Windows server event log

Look for event 656/650/657 in the application log after you run the powershell commands in the next section.


Startup your Powershell ISE or a Powershell prompt

Import-Module adsync

$aadcon = Get-ADSyncConnector | Where {$_.Type -eq “Extensible2”}

$adcon = Get-ADSyncConnector | Where {$_.Type -eq “AD”}

$c = Get-ADSyncConnector -Name $adcon.Name

$p = New-Object Microsoft.IdentityManagement.PowerShell.ObjectModel.ConfigurationParameter “Microsoft.Synchronize.ForceFullPasswordSync”, String, ConnectorGlobal, $null, $null, $null

$p.Value = 1



$c = Add-ADSyncConnector -Connector $c

Set-ADSyncAADPasswordSyncConfiguration -SourceConnector $adcon.Name -TargetConnector $aadcon.Name -Enable $false

Set-ADSyncAADPasswordSyncConfiguration -SourceConnector $adcon.Name -TargetConnector $aadcon.Name -Enable $true

New way

  1. Open the PowerShell command prompt as an administrator.
  2. Run the command Import-Module ADSync. This imports the Azure AD Connect module.
  3. Run the command Start-ADSyncSyncCycle -PolicyType Delta. This initiates a delta sync cycle, which synchronizes only the changes made since the last sync.
  4. To check the current sync status, run the command Get-ADSyncScheduler.
  5. To force a full sync, run the command Start-ADSyncSyncCycle -PolicyType Initial.


You should be able to see sync of your passwords after you run the powershell script.

Seneste indlæg

Nyheder, tips og tricks inden for IT-sikkerhed, Microsoft løsninger, Outsourcing.

Få en uforpligtende

Overvejer du at få hjælp fra en intern IT-afdeling? Book et uforpligtende møde via formularen herunder, så du kan lære mere om vores tjenester.
Contact Form Demo (#3)
Mennesker ved tavle