Troubleshoot · 2 tools
Check Entra Connect sync health from both sides
Summary
Checks hybrid identity health from the cloud (last directory sync time, password hash sync) and from the sync server (scheduler, staging mode, next cycle). Run it before a migration wave that depends on new synced accounts.
Implementation
Choose your tool. Your choice is remembered on other samples.
Connect-MgGraph -Scopes Organization.Read.All -NoWelcome
Get-MgOrganization | Select-Object DisplayName, OnPremisesSyncEnabled, OnPremisesLastSyncDateTime,
OnPremisesLastPasswordSyncDateTime
# A last sync time older than about an hour means the sync server needs attention.Import-Module ADSync
Get-ADSyncScheduler | Select-Object SyncCycleEnabled, StagingModeEnabled, CurrentlyEffectiveSyncCycleInterval, NextSyncCycleStartTimeInUTC, SyncCycleInProgress
Get-ADSyncConnectorRunStatus
# Start a delta cycle after fixing an issue:
# Start-ADSyncSyncCycle -PolicyType DeltaPrerequisites
- Graph scope Organization.Read.All
- Local administrator on the Entra Connect server
Output
Console output with sync times and scheduler state.
Related answers
Contributors
| Author | Role |
|---|---|
| Priyanshu Upadhyay | Solution Architect, Microsoft 365 and Azure |
InnovaticT