Force DirSync To Synchronize With Office 365

As Part Of Recent Development Microsoft have changed the steps / method of forcefully changing the password .

Earlier it was done through Logging into the Dirsync Server and Open A Powershell Windows (With Elevated Privileges), Navigate To The C:\Program Files\Windows Azure Active Directory Sync\ Directory And Type The.\Dirsyncconfshell.Psc1 Command. When Done You Can Start start-Onlinecoexistencesync Cmdlet Which Will Force Replication.

When You run latest version of DirSync it slightly changed and you need to run the following commands in Powershell.

Import-Module Dirsync

Start-OnlineCoexistenceSync

You may get the following error very rarely else it usually runs flawlessly. Incase if you ran into this scenario , It’s because the Set-ExecutionPolicy policy is not set for RemoteSigned – (Downloaded scripts must be signed by a trusted publisher before they can be run) . Little about the Set-ExecutionPolicy incase if you are not aware this cmdlet enables you to determine which Windows PowerShell scripts (if any) will be allowed to run on your computer. Windows PowerShell has four different execution policies:

PowerShell Error

Restricted – No scripts can be run. Windows PowerShell can be used only in interactive mode.

AllSigned – Only scripts signed by a trusted publisher can be run.

RemoteSigned – Downloaded scripts must be signed by a trusted publisher before they can be run.

Unrestricted – No restrictions; all Windows PowerShell scripts can be run.

If you’re using Windows 2008 R2 then there is an x64 and x86 version of PowerShell both of which have to have their execution policies set. Check if you have set the execution policy in both hosts?

You can set the execution policy by typing this into your powershell window:

Set-ExecutionPolicy RemoteSigned

Once the above comments is executed. You will be able to execute the Start-OnlineCoexistenceSync withought having any error . To verify the status you may execute the  Synchronization Service Manager (miisclient.exe) which is normally  located at C:\Program Files\Windows Azure Active Directory Sync\SYNCBUS\Synchronization Service\UIShell.

Synchronization Service Manager

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s