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.

Microsoft Graph PowerShell
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.

Prerequisites

  • Graph scope Organization.Read.All
  • Local administrator on the Entra Connect server

Output

Console output with sync times and scheduler state.

Related answers

Contributors

AuthorRole
Priyanshu UpadhyaySolution Architect, Microsoft 365 and Azure
Disclaimer. These samples are provided as is, without warranty of any kind. Read and test every script in a non-production tenant before you run it, and run reports before any command that changes or deletes data.