Management

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 786 other subscribers

Social

  • LinkedIn
  • RSS Feed for Posts
  • Twitter
  • StumbleUpon

[Solved] Office 365: AADConnect unable to find Scheduled task or DirectorySyncClientCmd.exe

This week I had to synchronize Active Directory users to Office 365.

I Downloaded the latest version of AADConnect for synchronization, but was unable to find the normal scheduled task for synchronization, of unable to find C:\Program Files\Microsoft Azure AD Sync\Bin\DirectorySyncClientCmd.exe file.

After some troubleshooting, I found the real reason:

As of late February 2016, AADConnect is changed (build 1.1.105.0) !

This version no longer has a scheduled task, or DirectorySyncClientCmd.exe. The scheduler is now build in, with a standard sync tome of 30 minutes! The scheduler itself is always running, but it can be configured to only run one or none of these tasks.

To check the sync:

 

Get-ADSyncScheduler

AllowedSyncCycleInterval. The most frequently Azure AD will allow synchronizations to occur. You cannot synchronize more frequently than this and still be supported.

CurrentlyEffectiveSyncCycleInterval. The schedule currently in effect. It will have the same value as CustomizedSyncInterval (if set) if it is not more frequent than AllowedSyncInterval. If you change CustomizedSyncCycleInterval, this will take effect after next synchronization cycle.

CustomizedSyncCycleInterval. If you want the scheduler to run at any other frequency than the default 30 minutes, you will configure this setting. In the picture above the scheduler has been set to run every hour instead. If you set this to a value lower than AllowedSyncInterval, the latter will be used.

NextSyncCyclePolicyType. Either Delta or Initial. Defines if the next run should only process delta changes, or if the next run should do a full import and sync, which would also reprocess any new or changed rules.

NextSyncCycleStartTimeInUTC. Next time the scheduler will start the next sync cycle.

PurgeRunHistoryInterval. The time operation logs should be kept. These can be reviewed in the synchronization service manager. The default is to keep these for 7 days.

SyncCycleEnabled. Indicates if the scheduler is running the import, sync, and export processes as part of its operation.

MaintenanceEnabled. Shows if the maintenance process is enabled. It will update the certificates/keys and purge the operations log.

IsStagingModeEnabled. Shows if staging mode is enabled.

You can modify these settings:

 

Start a synchronisation

Delta sync:

 

Full Sync:

 

Stop the scheduler

You can stop de scheduler:

 

More info:

https://azure.microsoft.com/en-us/documentation/articles/active-directory-aadconnectsync-feature-scheduler/

https://azure.microsoft.com/en-us/documentation/articles/active-directory-aadconnectsync-whatis/

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.