How to Run Start-ADSyncSyncCycle

How do you trigger synchronization between your local on-premises Active Directory and Azure?

The fastest method to force Azure AD Connect to synchronize AD and Azure is by running the PowerShell command Start-ADSyncSyncCycle:

  1. Import the ADSync module: Import-Module ADSync
  2. Run the Start-ADSyncSyncCycle command
    1. For delta synchronization use the parameter -PolicyType Delta (used in most situations)
    2. For full synchronization use the parameter -PolicyType Initial (rarely used)

Use the following code to perform a delta synchronization:

  1. Import-Module ADSync
  2. Start-ADSyncSyncCycle -PolicyType Delta

The output will look like this:

PS C:\Windows\system32> Import-Module ADSync PS C:\Windows\system32> Start-ADSyncSyncCycle -PolicyType Delta Result ------ Success

How to Perform Remote Synchronization of AD and Azure

You don’t need to log in to your Azure AD Connect server in order to force a synchronization between AD and Azure.

Use the following steps to trigger a remote synchronization of AD and Azure:

  1. Use the Enter-PSSession command to connect to your Azure AD Connect server
  2. Import the ADSync module
  3. Perform a delta synchronization using the Start-ADSyncSyncCycle command
  4. Exit the PSSession to kill the connection to your Azure AD Connect server

Use the following code to perform a remote delta synchronization:

  1. Enter-PSSession DC-01
  2. Import-Module ADSync
  3. Start-ADSyncSyncCycle -PolicyType Delta
  4. Exit-PSSession

The output will look like this:

PS C:\Windows\system32> Enter-PSSession DC-01 [DC-01]: PS C:\Users\adm.ad.jane\Documents> Import-Module ADSync [DC-01]: PS C:\Users\adm.ad.jane\Documents> Start-ADSyncSyncCycle -PolicyType Delta Result ------ Success [DC-01]: PS C:\Users\adm.ad.jane\Documents> Exit-PSSession PS C:\Windows\system32>

(assuming DC-01 is your Azure AD Connect server)

Improved Office 365 Synchronization and Management

Making sure that Azure is quickly updated when making changes in your local AD can be frustrating.

As detailed here the default synchronization schedule is every 30 minutes and not configurable.

You can ease your administrative pain in two ways:

Schedule a PowerShell script to automatically synchronize Azure on every AD user change (free and with full source code here).

Alternatively, use a professional Office 365 Management Tool to manage AD users, Office 365 and Azure synchronization in one consolidated tool. Easy365Manager is a plugin for AD Users & Computers which will add two new tabs to user properties. The new tabs allow you to configure Azure synchronization as well as Office 365 mailbox, Office 365 licenses and many other items. A free trial is available here.

Did you like this post? Maybe your friends will too!
Facebook
Twitter
LinkedIn