Get-EntraConnectSyncHealth
SYNOPSIS
Checks the health of Microsoft Entra Connect Sync on the sync server: service, scheduler, last runs, objects in error, pending exports and event log.SYNTAX
DESCRIPTION
Runs a set of local checks on the Entra Connect Sync server and returns one row per check, with a status (OK, Info, Warning or Error), the observed value and a detail. Nothing is read from Microsoft Entra ID and no credential is asked: every check uses the local ADSync cmdlets, csexport.exe and the local event log. Checks:- Service: ADSync service state, Entra Connect version, auto-upgrade state.
- Scheduler: sync cycle enabled, staging mode, maintenance, cycle in progress, next cycle overdue.
- Run: result of the last run of each run profile per connector (Delta Import, Delta Synchronization, Export…) and age of the last run of each connector. A failing import (connector unreachable, expired service account password) shows up here: it is a run result, not an object error.
- Objects: number of objects in import/synchronization error and in export error per connector, with the most frequent error types. Get-EntraConnectSyncObjectReport -ErrorsOnly lists them one by one.
- Pending export: number of objects waiting to be exported per connector.
- Event log: errors of the ADSync and Directory Synchronization sources.