How To: Create a shortcut to force Directory Sync

By May 15, 2012Office 365

As you may know, there are two ways to force synchronisation in the Microsoft Online Directory Synchronisation Tool. The GUI method, which means you have to re-enter all the credentials and settings, or the PowerShell method.

I won’t go into the GUI method on this post, however a quick recap on the PowerShell method is as follows.

As Microsoft don’t leave any handy shortcuts to the PowerShell Console (DirSyncConfigShell.psc1) you need to open up a powershell console and add the snap-in (or Double Click on the DirSyncConfigShell.psc1 file in C:\Program Files\Microsoft Online Directory Sync) and run command to start the Synchronisation.

This can be slip streamed into handy shortcut, reducing the administrative overhead (all be it very minimal, but it soon adds up).

So what to do…

Create a new shortcut or make a copy of the existing PowerShell shortcut from the start menu.
In the Properties of the shortcut replace the Target with the following

Please Note: The above is for a 64bit OS. Directory Synchronisation can be installed on a 32bit OS. The above will need to be modified for those running 32bit. If anyone does modify this for a 32bit OS please use the comments section below and I’ll have it added to the post.

Chris Colden

Chris Colden

28 | IT Consultant | Web Dev'er | Geek | Metal Head | Gamer | Tea, Beer and Wine Drinker | Slightly Wonky | All views my own and not of my employer(s)

Leave a Reply