Force Active Directory Synchronization with Office 365 (Azure AD Connect)

For those times when you cannot wait for DirSync/AD Connect to run a sync job on schedule, you you can force synchronization with PowerShell.

 

For Azure AD Connect version 1.1.105.0 (February 2016 release):

This version has a default sync time of 30 minutes. This can be changed if needed, use the link below, to run Set-ADSyncScheduler command.

https://azure.microsoft.com/en-us/documentation/articles/active-directory-aadconnectsync-feature-scheduler/

Delta Sync – 

  • Delta import on all Connectors
  • Delta sync on all Connectors
  • Export on all Connectors
  1. Login to the AD Connect Server
  2. Open PowerShell
  3. Type Start-ADSyncSyncCycle -PolicyType Delta, and then press ENTER.

 

Full Sync – 

  • Added more objects or attributes to be imported the source directory
  • Changes to the Sync rules
  • Changes to filtering
  1. Login to the AD Connect Server
  2. Open PowerShell
  3. Type Start-ADSyncSyncCycle -PolicyType Initial, and then press ENTER.

 

For the older sync client called DirSync:

This version has a default sync time of 3 hours. This cannot be changed and if needed, you should run a manual sync job.

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

 

 

Thanks for visiting and reading my posts. I am always looking for more ideas. Please comment or email me with what you would like to see.

Kelsey Epps

Office 365 MVP

Email Me Follow me on Twitter Connect with me on LinkedIN

Leave a Reply