woensdag 23 november 2011

Change Dirsync (32-bit) sync interval to less than 3 hours

There may be scenario's where you don't want to wait 3 hours for Dirsync to copy changes to Office 365.
If you have lots of changes per day you might want to consider chaning the sync interval to less than 3 hours.

Keep in mind that Dirsync takes some time to copy all the changes to Office 365.
Monitor the eventlogs on the Dirsync machine to check how long it takes to sync changes to Office 365.
In our case, this is about 5 minutes.

To change the sync interval we have to make some changes to the "Microsoft Online Services Directory Syncrhonization Service".
  • Log on to the dirsync machine.
  • Browse to "C:\Program Files\Microsoft Online Directory Sync"
  • Open "Microsoft.Online.DirSync.Scheduler.exe.Config" with Notepad.

Once opened, you will find the content shown below.

Notice the "Synctimeinterval" and its value.

The notation for this value is Hours:Minutes:Seconds.
Change the value of the synctimeinterval to the desired value.
In my case I changed the value to 0:15:0, which represents 0 hours, 15 minutes and 0 seconds.
Basically a sync every 15 minutes.

Save the config file and restart the "Microsoft Online Services Directory Syncrhonization Service".

Good luck!

6 opmerkingen:

  1. What is the minimum interval that can be set for this?

  2. As far as I know there is no minimum. I would recommend you check how long the sync job runs. In my case it runs for little over a minute so I could change it to 5 minutes. But we do not have that many changes that require immediate sync.

  3. 3 minutes is what I seeing right now. I tried to use 1 minute but I'm getting syncs on 3 minutes intervals...

    1. I think this depends on how long your sync runs.

  4. The synchronization schedule function has been redesigned since the release of Azure Active Directory Sync.
    Here is a post how to adjust the frequency of the sync schedule: