A cloud-based identity and access management service for securing user authentication and resource access
If ADSync still does not start, check the two most common causes first:
- Open Services.msc and try to start Microsoft Entra ID Sync.
- If it fails with Error 1069 or Event ID 7038, the ADSync service account password in the service logon settings is incorrect.
- Update the password in Services.msc for the ADSync service account.
- If the service still fails and Event Viewer shows Event ID 6028 with "The server encryption key cannot be accessed", the sync service can no longer retrieve its encryption key after the password change.
- In that case, follow the Abandoning the ADSync service account encryption key process.
- On the Microsoft Entra Connect Sync server, open PowerShell.
- Run:
$credential = Get-Credential Add-ADSyncAADServiceAccount -AADCredential $credential - This resets the Microsoft Entra service account password and updates it in Microsoft Entra ID and the sync engine.
- Then restart Microsoft Entra ID Sync from Services.
- Verify the ADSync service account itself:
- The account is not expired or disabled.
- User must change password at next logon is not enabled.
- The password is not expired.
- Check required user rights assignment for the ADSync service account in local and domain Group Policy:
- Allow log on locally
- Log on as a batch job
- Log on as a service
- If these were changed through GPO, restart the server after correcting them.
- Review Event Viewer:
- Check Application and System logs for directory synchronization events.
- This helps confirm whether the failure is a logon problem, encryption key problem, or policy/permissions issue.
A practical end-to-end path is:
- Check Services.msc start error.
- Check Event Viewer for 7038 or 6028.
- If password-related, update the ADSync service logon password.
- If encryption-key-related, run
Add-ADSyncAADServiceAccount -AADCredential $credential. - Verify the account status and required logon rights.
- Restart the server if GPO rights were changed.
References: