How to Increase the Frequency of DirSync Synchronization

After installing the latest version of Windows Azure Active Directory Sync (DirSync) you may want to increase the frequency of synchronization between your AD organization and the cloud. To accomplish this open the Administrative Tools folder on the DirSync server and open Task Scheduler.

If everything has been configured correctly you will see a task called: Azure AD Sync Scheduler, double click that task

task1

There is a local account created by DirSync that is used for this task indicated where the green box is, if you want to make changes to this Task you have to set the password for this user in Computer Management > Users and Groups or you can create and use a different user account that has full admin privileges

task5

Select the trigger tab

task2

Set the task the repeat at the desired replication time, maybe 15 minutes or 1 hour is fine for your organization, it is up to you, select ok to save

task3

You will be prompted for the password from the general tab to be able to save, once you saved you are done and DirSync will run every interval you have selected!

taskpassword

If you would like a way to force DirSync easily, set up a shortcut. Learn about it in this article.

How to Install the New Windows Azure Active Directory Sync (DirSync)

 

ActiveDirecotry2Windows Azure Active Directory Sync (DirSync) has gone through many iterations just in the last few years but the good news is it is getting easier to install and use. It used to be quite  pain to reinstall or migrate.  DirSync is the easiest way to sync your AD organization to Microsoft’s cloud including Azure, Office 365 and Exchange Online.

The current version can be downloaded here:

Windows Azure Active Directory Sync (DirSync)

If you have an older version of DirSync and want to move to the latest version I highly recommend it because the newer one is easier to use. To force sync on the older versions you click a lot in miisclient.exe in a very specific sequence or run PowerShell commands. The last iteration even included a script that had to be launched from PowerShell itself. It was not optimal for daily management.

If you are starting with a fresh install skip to the How to below. As you can only sync from one server at a time, there are only two possible scenarios if you had an older version installed already:

  1. Install on the same server – because the architectures are a bit different you can simply remove the old version of DirSync using Programs and Features and install the new version.
  2. Install on a different server – disable the service Azure Active Directory Sync on the old server or completely uninstall it and use the instructions below to install on the new server.

How to Install Windows Azure Active Directory Sync

Because the architectures are a bit different you can simply remove the old version of DirSync using Programs and Features and install the new version. Use the download link above to download the lastest version and open the exe file.

1

After you agree to the terms and select install it will run for a bit and disappear. Look on your desktop for this icon and open it.

icon-dir

You are now in the configuration window, enter your cloud credentials

2

Enter your on-prem credentials and select add forest and next

3

Configure any user matching parameters required, but the default is usually fine

4

Do not select any of these options at this time so you can setup and test the connection

5

Select next

6

Keep the Synchronize now box unchecked and select Finish

7

This is a good time for a restart to ensure you have been added to the appropriate security group and just to clear out any potential issues before you test the connection and finalize the configuration.

Once you restart, open the Synchronization Service, there should be a new icon on your desktop. This app is the replacement for miisclient.exe.

sync serv

You can observe what is being synced here and also check for errors with this app

sync mgr

Now we need to test if the configuration worked before we set the configuration to automatically sync. The easy way is to force synchronization with a shortcut.

How to Force DirSync Synchronization with a Shortcut

Right click anywhere on your desktop and select New > Shortcut

short

Paste this target box and select next

“C:\Program Files\Microsoft Azure AD Sync\Bin\DirectorySyncClientCmd.exe”

Choose a name, Finish

force

Once saved, select the new shortcut to test

force sync cmd

You should see the synchronization steps listed in the Sync Manager, any errors will show up in the lower right box

sync manager list

Sync successful! open up the Directory Synchronization tool again from the icon on your desktop and configure it for auto sync. Check the boxes for password synchronization and enable Synchronization on the last page.

If you ever need to remove DirSync from the server, go to Programs and Features and uninstall Windows Azure AD Sync and it will uninstall all other parts automatically.

uninstall

Read this article to learn how to increase the synchronization frequency of DirSync.

Hope this helps!