Change Dirsync synchronization frequency

By: Emiley J Emailed: 1676 times Printed: 2158 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Sometimes, even trivial tips could come in very handy such as this. I have been searching high and low for an option to change the frequency of synchronization between on-premise AD and Office 365. And found this simple solution.

The default frequency when directory synchronization service runs is every 3 hours. Some say that this can be changed by modifying the config file Microsoft.Online.DirSync.Scheduler.exe.Config at %program files%/Microsoft Online Directory Sync folder.

The file is there and the default setting is 3:0:0 which stands for every 3 hours. Changing this value, does not in anyway affect the frequency. Microsoft document clearly says, the directory synchronization frequency CANNOT be changed

What you can do instead is to manually initiate the dirsync to run as and when you want using the powershell

To manually run the dirsync, do the following:

  1. On the computer that is running the Directory Synchronization tool, navigate to the directory synchronization installation folder. By default, it is located here: %programfiles%\Microsoft Online Directory Sync.
  2. Double-click DirSyncConfigShell.psc1 to open a Windows PowerShell window with the cmdlets loaded.
  3. In the Windows PowerShell window, type Start-OnlineCoexistenceSync, and then press ENTER.
  4. If you see any warnings, just ignore them. You can double check that it is actually intiated and running by checking the 'Event Viewer'.


    Office365 Home | All Office365 Tutorials | Latest Office365 Tutorials

    Sponsored Links

    If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



    Bookmark and Share

    Comments(3)


    1. View Comment

    This is the solution that I also used, however, there may be a problem with this method: the default "every three hour" schedule appears to continue, regardless of the time of the last manual run. In other words, there could be a potential conflict when your manually triggered job is in the middle of running one of the four tasks, and then the scheduled process kicks in.

    I am still testing this, and trying to ascertain whether or not there really is an issue. I am trusting that Microsoft programmers were smart enough to check for the status of the process when the Powershell is started.

    I am triggering my scheduled process (an event log triggered scheduled task) to run after an Application Event ID 4 (dirsync process completed), waiting for 30 minutes before starting the Powershell.

    So far, on my system, I am not seeing a problem with doing this.


    View Tutorial          By: Rob Ingenthron at 2012-07-18 23:06:18
    2. View Comment

    The DirSync sync intervals can be changed.

    By default the Directory Synchronization runs every 3 hours. If you want to increase or decrease the frequency you will need to modify the following file:

    C:\program files\Microsoft Online Directory Sync\Microsoft.Online.DirSync.Scheduler.exe.Config

    Open it with notepad and find the following value:
    <add key=”SyncTimeInterval” value=”3:0:0″ />

    By default the SyncTimeInterval is set to 3 hours. If you wanted it to run every 30 minutes you’d change the value to ”0:30:0″. We wouldn’t recommend going any lower than 15-30 minutes.


    View Tutorial          By: Nitin at 2012-12-22 16:20:38
    3. View Comment

    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:

    http://heineborn.com/tech/change-the-azure-active-directory-sync-schedule/


    View Tutorial          By: Kim at 2014-11-12 10:52:13

    Your name (required):


    Your email(required, will not be shown to the public):


    Your sites URL (optional):


    Your comments:



More Tutorials by Emiley J
Password must include both numeric and alphabetic characters - Magento
What is Hadoop?
Returning multiple values from a web service
Tomcat and httpd configured in port 8080 and 80
Java Webservices using Netbeans and Tomcat
Java WebService connected to Database
How to Deploy a Java Web Service
Call a webservice in Java
Java WebService - Create your first web service in Java
package javax.jws does not exist
Getting Started with Android
HTML5 Location - getCurrentPosition() in HTML5
HTML5 Canvas - Using Canvas in HTML5
HTML5 - Introduction
HTML5 Video - Handling video in HTML5

More Tutorials in Office365
ADFS and ADFS Proxy in Windows Server 2012
365 office login (office 365 login)
Configure SSO for a domain with ADFS - Convert a domain to a federated domain in Office 365
What is Ofice 365 Home Premium
What is Office 365 Small Business Premium?
What is Office 365 Midsize Business Plan?
Migration from on-premise exchange 2003 to Office 365
Create Word, Excel, PowerPoint using Office Web Apps in Office 365
On-premise Exchange and Lync Online integration
Email limits and message limitations in Office 365
Comparison: SharePoint Online Plan 1 vs SharePoint Online Plan 2
Migrating SharePoint WSS2.0 site to SharePoint Online and Backup the SharePoint Online
Configure Outlook Manually for Office 365
Directory Synchronization tool in Office 365
Is autodiscover CNAME a must in Office 365

More Latest News
Most Viewed Articles (in Office365 )
Making your Alias email as 'Send As' in Office 365
On-premise Exchange and Lync Online integration
Configure IIS as SMTP relay server for Office 365
Comparison: SharePoint Online Plan 1 vs SharePoint Online Plan 2
365 office login (office 365 login)
ADFS and ADFS Proxy in Windows Server 2012
The user's mailbox has already been migrated.
Myths about Directory Synchronization in Office 365
xxxx cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details.
Change primary e-mail address of a Office 365 user or group
How to configure Outlook in a staged migration of Office 365
Setting up Office 365 in Android phones and tablets
Adding and deleting new users in Active Directory when DirSync is running - Office 365
What is Office 365 Small Business Premium?
Install and configure Memcached in linux
Most Emailed Articles (in Office365)
Outlook Live couldn't sign in to the user account on the IMAP messaging system.
xxxx cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details.
Steps to Create Shared Mailbox in office 365
On-premise Exchange and Lync Online integration
Change Dirsync synchronization frequency
Configure Outlook Manually for Office 365
Directory Synchronization tool in Office 365
ADFS and ADFS Proxy in Windows Server 2012
Making your Alias email as 'Send As' in Office 365
An Outlook Live mailbox wasn't found for the user.
The user's mailbox has already been migrated.
Outlook Live couldn't connect to the IMAP server.
The user's Outlook Live mailbox is full.
Change primary e-mail address of a Office 365 user or group
How to configure Outlook in a staged migration of Office 365