Remote Trigger Azure AD Sync

By | November 24, 2014

Since we are on Office 365 and synchronize our local Active Directory to Office 365, we sometimes need a way to manually trigger an Azure Active Directory Sync when creating new accounts. This code will do that for us. Just change “DIRECTORYSYNCSERVER” to your own server that is running Azure Directory Synchronization. This specific code will perform a delta sync. Just copy the code and paste it into a new text document and save it as a .ps1 file. Then you can just right-click it choose “Run with PowerShell”.

NOTE: You may need to enable remote execution on your DirSync server if it’s not already done.