Few weeks back I wrote a blog post describing how you can manually trigger an Azure AD Connect synchronization. Well, you can forget almost everything I wrote there, because Azure AD Connect default synchronization interval and manual sync process have totally changed starting with Azure AD Connect version 220.127.116.11. Let’s take a look at what’s new.
The first thing to note is that DirectorySyncClientCmd.exe does not exist anymore. No matter where you are looking for it, you won’t find this executable, so don’t lose your time. Secondly, the Azure AD Connect Task scheduler is not visible in Task Scheduler anymore. So, don’t lose your time looking for it either. What we have instead is more PowerShell. And since I am a PowerShell fan, I really like the new approach.
So first thing to to if you have the newest version of Azure AD Connect is fire up PowerShell and run the following cmdlet:
You will get following output:
First thing we notice here is that the default synchronization interval is now 30 minutes, instead of 3 hours like it was in earlier versions. Of course, you can change this interval by using the Set-ADSyncScheduler cmdlet and defining the CurrentlyEffectiveSyncInterval parameter.
The nest thing to notice is that the next synchronization would be a delta synchronization. Now if you want to define the next sync as a full sync you can run again the Set–ADSyncScheduler cmdlet and change the NextSyncCyclePolityType to “Full”. This will ensure that when the next synchronization will occur, this will be a full sync and not delta.
However, if you want to manually trigger a synchronization, either full or delta, you need to do this via PowerShell. So, in order to run a delta synchronization, you would need to run following cmdlet:
Start-ADSyncSyncCycle -PolicyType Delta
And for a full sync, this would be:
Start-ADSyncSyncCycle -PolicyType Initial
When you run this cmdlets, nothing will be displayed in PowerShell! But if you open Synchronization Service you will notice that your Azure AD Connect is doing its job.
That’s all. At least until a new version is released
Latest posts by Dan Patrascu-Baba (see all)
- #Build 2017 – some exciting things - 10/05/2017
- Testing Azure AD per app MFA and conditional access based on network location - 29/07/2016
- Curriculum Vitae Builder, a great Office add-in - 28/07/2016