About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
An administrator starts an upgrade of Microsoft Entra Connect and the wizard stops with a message that the synchronisation service could not be upgraded. The event log and the installer log show Windows Installer error 1603 from a step called DetectServiceAccount. Microsoft documents one cause for this combination, and it is a setting on an existing Windows service.
Nothing before the Fix section changes anything.
What the error means
Microsoft's page gives the message shown by the upgrade:
An Error occurred while Upgrading from Azure Active Directory Sync. Unable to upgrade the Synchronization Service. Please see the Event log for additional details.
The detailed log it lists includes these lines:
Error installing msi package 'Synchronization Service.msi'. Full log is available at 'C:\ProgramData\AADConnect\Synchronization Service_Install-DateTime.log'.
Action startTime: DetectServiceAccount.
CustomAction DetectServiceAccount returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
So the installer's own step for detecting the service account is what failed. Microsoft states the cause in one sentence: "The underlying service account was configured by using the user principal name (UPN) instead of Domain\SamAccountName."
The sample log on the page comes from a synchronisation services product version 1.1.614.0, and the page gives no version range, so treat the cause as documented for that scenario and confirm it on your own log.
Choosing the upgrade method before you retry
Microsoft's upgrade page lists three strategies. An automatic upgrade is the easiest method for an express installation and needs no manual intervention, but the auto-upgrade version might not include the latest features. An in-place upgrade runs on the same server and needs no second server, but if there is an issue you cannot roll back the new release or configuration. A swing migration builds a new, updated server aside before switching. Microsoft calls it the safest approach and says sync is not interrupted and does not impose a risk to production, at the cost of installing on a separate server.
The page also says that customers who have not upgraded in 12 to 18 months should consider a swing upgrade, as the most conservative and least risky option, and that servers in production for several years have several patches applied, not all of which can be accounted for. A failed in-place upgrade on an old server is exactly the case where that advice applies, so decide the method before you retry.
Two consequences of an in-place upgrade are on the page. If there are changes to the out-of-box sync rules, a full import and full synchronisation occur after the upgrade, which can take a few hours depending on the number of objects in scope. And rules you changed from the out-of-box configuration are set back to default on upgrade.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| The sync service account is set as a UPN | Error 1603 from DetectServiceAccount in the install log | The service's Log On account is written as name@domain |
| Something else fails the same installer step | Error 1603 with a different action named before the failure | The action in the install log is not DetectServiceAccount |
Microsoft documents only the first cause. Its pages give no other cause for 1603 in this upgrade.
Prove the cause before changing anything
All of these only read.
- Open the installer log named in the message,
C:\ProgramData\AADConnect\Synchronization Service_Install-DateTime.log, where the date and time part is in the file name. Search for DetectServiceAccount and the code 1603. If the failing action is something else, Microsoft's cause does not apply and the fix below will not help. - On the Microsoft Entra Connect server, open the Service Console (services.msc) and locate the Microsoft Azure AD Sync service. Microsoft's page uses that name.
- Open the service's Properties and look at the account on the logon tab, which Microsoft's page calls Logons. If the account is written as a UPN, such as
svc-sync@contoso.com.au, you have the documented cause. If it is written asCONTOSO\svc-sync, the cause is something else. - Write the account down exactly, including the form it is written in.
Example (illustrative): at contoso.com.au the sync service runs as svc-sync@contoso.com.au. The upgrade to the current release fails with error 1603 in DetectServiceAccount. Microsoft's cause matches the account's form, so the account is the first thing to correct.
Fix
Microsoft's resolution is to set the service account with Domain\SamAccountName instead of the UPN.
Before you change it, write down the account name as it shows now, and note who owns the password for that account. Also decide whether an in-place upgrade is the right method. Microsoft's upgrade page says that if there is an issue during an in-place upgrade you cannot roll back the new release or configuration, and that a swing migration, which builds a second server aside, is the safest approach, recommended for large changes or upgrades from older 1.x versions. The same page says in-place upgrade is preferred for a single server with fewer than about 100,000 objects.
Risk: The next steps change the account that the Microsoft Azure AD Sync Windows service runs as, on the server that synchronises your directory to Microsoft Entra ID. A wrong name or password can stop synchronisation until it is corrected. Microsoft's page does not say when the new account takes effect, so make the change in a quiet period.
- Start the Service Console on the Microsoft Entra Connect server.
- Locate the Microsoft Azure AD Sync service, then right-click it.
- Select Properties, then Logons.
- Set the account by using Domain\SamAccountName instead of the UPN.
- Select Apply and OK.
To undo it: repeat the same steps and enter the account in the form you wrote down. Microsoft's page does not describe re-entering a password, so if the dialog asks for one, supply the account's current password.
After the account is corrected, the upgrade can be run again.
Disruptive step: The next step runs the Microsoft Entra Connect upgrade again on the same server. Microsoft's upgrade page says that if there is an issue during an in-place upgrade you cannot roll back the new release or configuration, and that the delta synchronisation scheduler is suspended during the upgrade. Run it in a quiet period, after deciding the method as described above.
Run the upgrade wizard again.
To undo it: Microsoft's upgrade page describes no way to roll back an in-place upgrade. A swing migration, which builds a second server, is the method it describes as leaving production synchronisation uninterrupted.
Confirm the fix
- The upgrade runs to the end with no 1603 and no "Unable to upgrade the Synchronization Service" message.
- The Microsoft Azure AD Sync service is running, with its account written as Domain\SamAccountName.
- Synchronisation resumes. Check the sync results for the next scheduled cycle. Microsoft's upgrade page says the normal delta synchronisation scheduler, every 30 minutes by default, is suspended during an in-place upgrade, and that a full import and full synchronisation can follow if sync rules changed.
What to watch afterwards
- The first full import and full synchronisation after the upgrade. Microsoft says this can take a few hours depending on the number of objects in scope.
- Rules you changed in the default sync rules. Microsoft's page says rules changed from the out-of-box configuration are set back to default on upgrade.
- The version of the server. Microsoft's upgrade page carries a notice that Microsoft Entra Connect Sync should be upgraded to version 2.6.84.0 or later, with application-based authentication configured, by April 7, 2027, and says synchronisation services will stop working after that date if these are not met. That page is dated 2025-09-17, so check the current page.
- Old sync servers left running. The page says to fully decommission them, because an old server can overwrite Microsoft Entra data.
Read next
Related articles you may want next.
- TroubleshootingEntra Connect password hash sync not working: new passwords not reaching Microsoft 365Users change their Windows password but Microsoft 365 still wants the old one, or a new user cannot sign in at all. Work out whether no passwords or one user's password is failing, use Entra Connect's own troubleshooter, and confirm the fix in the sync log.Read article
- TroubleshootingEntra Connect Sync Errors: Duplicate Attributes, Soft and Hard Match ConflictsClassify Entra Connect export errors (AttributeValueMustBeUnique, InvalidSoftMatch, InvalidHardMatch, LargeObject), fix the source object on-premises and verify on the next cycle.Read article
- TroubleshootingEntra Connect export error 'permission-issue' 8344: 'Insufficient access rights to perform the operation'Entra Connect export 'permission-issue' 8344: find the attribute, check blocked inheritance and protected accounts, then restore connector permissions.Read article
Risks and limits
These steps have not been run or lab-tested.
Microsoft's error page gives no version range and does not say how to confirm the cause beyond the log. It states only the UPN cause for DetectServiceAccount. It does not say when a changed service account takes effect or whether a restart is needed. Its upgrade page recommends a swing migration for larger changes, and an in-place upgrade cannot be rolled back, so this fix leads to a re-run of an upgrade method that carries that limit.
The upgrade page also says the Microsoft Entra Connect Sync .msi installation file is exclusively available on the Microsoft Entra Admin Center, and that the minimum requirements include .NET Framework 4.7.2 and TLS 1.2. It refers to a separate page for the permissions required for an upgrade, whose steps are not repeated here, so confirm the account running the upgrade has them before the retry.
Sources
- Error when upgrading Microsoft Entra Connect: Unable to install the synchronization service — Microsoft Learn, page dated 2026-01-27, accessed 1 December 2026
- Microsoft Entra Connect: Upgrade from a previous version to the latest — Microsoft Learn, page dated 2025-09-17, accessed 1 December 2026
This article was originally published on .