Unable to reinstall microsoft entra connect Connect Sync, attached is the screenshot

Dithapelo Duice Mosinyi 0 Reputation points
2026-10-22T12:40:22.2733333+00:00
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-10-22T12:45:11.0266667+00:00

    Check the Entra Connect installation trace for a stale Azure AD Sync Engine product code, then remove that specific product code before restarting the installation; the message indicates setup is detecting remnants of the previous installation rather than beginning cleanly.^1^

    1. Identify the residual installer entry

    Perform these actions directly on the Entra Connect server while signed in as a local administrator:

    1. Start the Microsoft Entra Connect wizard and wait until its first page appears.
    2. Open:
         %ProgramData%\AADConnect\
      
    3. Open the newest installation trace log.
    4. Search for:
         GetInstalledPackagesByUpgradeCode
      
    5. Look specifically for an Azure AD Sync Engine entry reported as:
      • stale product code
      • inconsistent product code
      • installed even though the ADSync service no longer exists

    Record the associated product-code GUID. Do not use an example GUID—the value differs between installations.^1^

    2. Remove the confirmed stale product code

    Only if the trace confirms a stale or inconsistent Azure AD Sync Engine product code:

    1. Open Command Prompt as administrator.
    2. Replace the example value below with the GUID found in your trace:
         SET productcode={<12345678-0000-abcd-0000-0123456789ab>}
         SET /a counter+=1
         & MSIEXEC /x %productcode% /qn /norestart /l*v "%ProgramData%\AADConnect\AADConnect_Uninstall-ForcedUninstall_%counter%.log" EXECUTE_UNINSTALL="1"
      
    3. Run the MSIEXEC command a second time.
    4. Restart the server.
    5. Start Entra Connect, reopen the latest trace in %ProgramData%\AADConnect\, and confirm that the stale product code is gone.
    6. Continue the installation and create a new configuration instead of resuming the incomplete one.

    This forced removal affects the product identified by the GUID, so verify the GUID against the trace before running it.

    3. If the stale code remains

    Run Microsoft’s Program Install and Uninstall troubleshooter, restart the server, and inspect the newest %ProgramData%\AADConnect\ trace again. Microsoft documents this as the next step when Windows Installer is blocking installation or removal and has corrupted installer registration.^1^

    If the stale code is removed, rerun setup. If it remains, Microsoft’s documented recovery path is to reinstall Windows because the Windows Installer database might be unrecoverable.

    Warning: Reinstalling Windows is destructive and can remove applications, data, certificates, service credentials, and server configuration. Before doing so, have a verified backup, document the previous Entra Connect configuration, preserve required credentials and certificates, and use an approved recovery or migration plan.

    If no stale product code appears

    Do not run the forced MSI removal. The failure is then at the configuration/sign-in stage rather than Windows Installer cleanup. Review the newest files in %ProgramData%\AADConnect\ for the first authentication or connectivity error. Microsoft lists connectivity to on-premises AD, connectivity to Microsoft Entra ID, and AD connector-account permissions as common installation issues.^2^

    Also verify in Control Panel → Uninstall a program that Microsoft Entra Connect is no longer listed. The supported uninstall process requires selecting Microsoft Entra Connect, choosing Remove, completing the wizard, and refreshing the program list.^3^

    If configuration still fails, provide the first ERROR entry and approximately 20 lines around it from the latest trace, with tenant names, usernames, and identifiers redacted.


    References

    1. Troubleshoot Microsoft Entra Connect upgrade issues
    2. Troubleshoot: Microsoft Entra Connect install issues
    3. Uninstall Microsoft Entra Connect
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.