{"id":41535,"date":"2023-08-23T11:30:38","date_gmt":"2023-08-23T11:30:38","guid":{"rendered":"https:\/\/activedirectorypro.com\/?p=41535"},"modified":"2023-09-10T15:02:11","modified_gmt":"2023-09-10T15:02:11","slug":"force-sync-azure-ad-connect-using-powershell","status":"publish","type":"post","link":"https:\/\/activedirectorypro.com\/force-sync-azure-ad-connect-using-powershell\/","title":{"rendered":"How to Force Sync Azure AD Connect Using PowerShell"},"content":{"rendered":"\n

If you are using Azure AD Connect to sync your on-prem Active Directory to Azure you can force a sync with the following steps. <\/p>\n\n\n\n

Step 1. Check ADSync Module <\/h2>\n\n\n\n

When you install Azure AD Connect<\/a> it will include the ADSync PowerShell module. <\/p>\n\n\n\n

To verify the module is loaded run the command below. <\/p>\n\n\n\n

get-module<\/code><\/pre>\n\n\n\n
\"get-module\"<\/figure>\n\n\n\n

If it is not loaded use the below command (this assumes that Azure AD Connect was installed to the default path). If you run this on the machine that has Azure AD Connect installed then you most likely do not need to import the module. <\/p>\n\n\n\n

Import-Module -Name \"C:\\Program Files\\Microsoft Azure AD Sync\\Bin\\ADSync\" -Verbose<\/code><\/pre>\n\n\n\n
\"import<\/figure>\n\n\n\n

Step 2. Run Start-ADSyncSyncCycle command<\/h2>\n\n\n\n

You can choose to run a delta or a full sync. <\/p>\n\n\n\n