Field Notes

Manually Run an Azure AD Connect Synchronization Using PowerShell

  • Billy Ford

Sometimes you need to replicate changes between your on-premise Active Directory and Azure, but don't want to wait for the next scheduled sync. In these cases, the ADSync PowerShell module provides a very easy way to force synchronization.


Instructions

  1. Open a PowerShell Prompt.

    Open a PowerShell Prompt

  2. If you are running PowerShell from the server that Azure AD Connect is installed, skip to the next step. Otherwise, connect to the Server running Azure AD Connect.

    Enter-PSSession -ComputerName Server01
    

    Replace Server01 with the name of the server hosting Azure AD Connect in your environment.

  3. Ensure that the ADSync module is loaded.

    Import-Module ADSync
    
  4. Perform Delta or Full AD Connect Synchronization.

    • Delta Sync (Most Common)

      Start-ADSyncSyncCycle -PolicyType Delta
      
    • Full Sync

      Start-ADSyncSyncCycle -PolicyType Initial