Azure AD sync not found

Bill Artemik 1 Reputation point
2022-02-01T00:52:32.807+00:00

Azure AD Sync (installed on server 2012 R2) stopped working. Microsoft support requested we uninstall and install newer version 1.6. After uninstalling the older version (1.????), rebooting and installing new 1.6 version we get an error " Service ADSync was not found on computer" and everything stops. We tried uninstalling, rebooting, and installing again but that did nothing.

Here's data from the log file referenced in the error message:

[19:32:19.484] [ 1] [INFO ]
[19:32:19.536] [ 1] [INFO ] ================================================================================
[19:32:19.536] [ 1] [INFO ] Application starting
[19:32:19.536] [ 1] [INFO ] ================================================================================
[19:32:19.536] [ 1] [INFO ] Start Time (Local): Mon, 31 Jan 2022 19:32:19 GMT
[19:32:19.536] [ 1] [INFO ] Start Time (UTC): Tue, 01 Feb 2022 00:32:19 GMT
[19:32:19.537] [ 1] [INFO ] Application Version: 1.6.16.0
[19:32:19.537] [ 1] [INFO ] Application Build Date: 1932-05-21 20:28:52Z
[19:32:23.612] [ 1] [INFO ] Telemetry session identifier: {e2fd3dfa-7108-44a3-b416-b8f8ade249a1}
[19:32:23.613] [ 1] [INFO ] Telemetry device identifier: Y/EVhIYpwserRWuvdu0EJVSGji4O20ygfa00D4AlbSc=
[19:32:23.613] [ 1] [INFO ] Application Build Identifier: AD-IAM-HybridSync hotfix (0db09b25e)
[19:32:23.917] [ 1] [INFO ] machine.config path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config.
[19:32:23.917] [ 1] [INFO ] Default Proxy [ProxyAddress]: <Unspecified>
[19:32:23.917] [ 1] [INFO ] Default Proxy [UseSystemDefault]: Unspecified
[19:32:23.917] [ 1] [INFO ] Default Proxy [BypassOnLocal]: Unspecified
[19:32:23.917] [ 1] [INFO ] Default Proxy [Enabled]: True
[19:32:23.917] [ 1] [INFO ] Default Proxy [AutoDetect]: Unspecified
[19:32:23.917] [ 1] [INFO ] Default Proxy [UseDefaultCredentials]: False
[19:32:24.303] [ 1] [VERB ] Scheduler wizard mutex wait timeout: 00:00:05
[19:32:24.303] [ 1] [INFO ] AADConnect changes ALLOWED: Successfully acquired the configuration change mutex.
[19:32:24.426] [ 1] [INFO ] RootPageViewModel.GetInitialPages: Beginning detection for creating initial pages.
[19:32:24.473] [ 1] [INFO ] Checking if machine version is 6.1.7601 or higher
[19:32:24.504] [ 1] [INFO ] The current operating system version is 6.3.9600, the requirement is 6.1.7601.
[19:32:24.504] [ 1] [INFO ] Password Hash Sync supported: 'True'
[19:32:24.529] [ 1] [INFO ] DetectInstalledComponents stage: The installed OS SKU is 7
[19:32:24.541] [ 1] [INFO ] DetectInstalledComponents stage: Checking install context.
[19:32:24.545] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Visual C++ 2013 Redistributable Package
[19:32:24.742] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:24.756] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {20400cf0-de7c-327e-9ae4-f0f38d9085f8}: verified product code {abb19bb4-838d-3082-bda4-87c6604181a2}.
[19:32:24.756] [ 1] [VERB ] Package=Microsoft Visual C++ 2013 x64 Minimum Runtime - 12.0.40649, Version=12.0.40649, ProductCode=abb19bb4-838d-3082-bda4-87c6604181a2, UpgradeCode=20400cf0-de7c-327e-9ae4-f0f38d9085f8
[19:32:24.757] [ 1] [INFO ] Determining installation action for Microsoft Visual C++ 2013 Redistributable Package (20400cf0-de7c-327e-9ae4-f0f38d9085f8)
[19:32:24.758] [ 1] [INFO ] Product Microsoft Visual C++ 2013 Redistributable Package (version 12.0.40649) is installed.
[19:32:24.758] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Directory Sync Tool
[19:32:24.759] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:24.759] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.
[19:32:24.759] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.
[19:32:24.759] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: verified product code {7bc80ce7-dbbb-401f-b513-41d7a96c89bf}.
[19:32:24.759] [ 1] [VERB ] Package=Microsoft Azure AD Connect synchronization services, Version=1.1.189.0, ProductCode=7bc80ce7-dbbb-401f-b513-41d7a96c89bf, UpgradeCode=545334d7-13cd-4bab-8da1-2775fa8cf7c2
[19:32:24.766] [ 1] [INFO ] Determining installation action for Microsoft Directory Sync Tool UpgradeCodes {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}, {dc9e604e-37b0-4efc-b429-21721cf49d0d}
[19:32:24.767] [ 1] [INFO ] DirectorySyncComponent: Product Microsoft Directory Sync Tool is not installed.
[19:32:24.767] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Sync Engine
[19:32:24.767] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:24.767] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: verified product code {7bc80ce7-dbbb-401f-b513-41d7a96c89bf}.
[19:32:24.767] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.
[19:32:24.768] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.
[19:32:24.768] [ 1] [VERB ] Package=Microsoft Azure AD Connect synchronization services, Version=1.1.189.0, ProductCode=7bc80ce7-dbbb-401f-b513-41d7a96c89bf, UpgradeCode=545334d7-13cd-4bab-8da1-2775fa8cf7c2
[19:32:24.770] [ 1] [INFO ] Determining installation action for Azure AD Sync Engine (545334d7-13cd-4bab-8da1-2775fa8cf7c2)
[19:32:26.905] [ 1] [VERB ] Check product code installed: {4e67cad2-d71b-4f06-a7ae-bb49c566bb93}
[19:32:26.905] [ 1] [INFO ] GetProductInfoProperty({4e67cad2-d71b-4f06-a7ae-bb49c566bb93}, VersionString): unknown product
[19:32:26.906] [ 1] [INFO ] AzureADSyncEngineComponent: Product Azure AD Sync Engine (version 1.1.189.0) is installed, needs to be upgraded to version 1.6.16.0.
[19:32:26.906] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Synchronization Agent
[19:32:26.906] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:26.906] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {3cd653e3-5195-4ff2-9d6c-db3dacc82c25}: no registered products found.
[19:32:26.906] [ 1] [INFO ] Determining installation action for Azure AD Connect Synchronization Agent (3cd653e3-5195-4ff2-9d6c-db3dacc82c25)
[19:32:26.906] [ 1] [INFO ] Product Azure AD Connect Synchronization Agent is not installed.
[19:32:26.906] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Health agent for sync
[19:32:26.906] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:26.906] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {114fb294-8aa6-43db-9e5c-4ede5e32886f}: no registered products found.
[19:32:26.906] [ 1] [INFO ] Determining installation action for Azure AD Connect Health agent for sync (114fb294-8aa6-43db-9e5c-4ede5e32886f)
[19:32:26.906] [ 1] [INFO ] Product Azure AD Connect Health agent for sync is not installed.
[19:32:26.906] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent
[19:32:26.906] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:26.906] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {0c06f9df-c56b-42c4-a41b-f5f64d01a35c}: no registered products found.
[19:32:26.906] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (0c06f9df-c56b-42c4-a41b-f5f64d01a35c)
[19:32:26.906] [ 1] [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.
[19:32:26.906] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Administration Agent
[19:32:26.906] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:26.906] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {886051ec-1165-4df8-a492-19d1e0ff57ee}: no registered products found.
[19:32:26.906] [ 1] [INFO ] Determining installation action for Azure AD Connect Administration Agent (886051ec-1165-4df8-a492-19d1e0ff57ee)
[19:32:26.906] [ 1] [INFO ] Product Azure AD Connect Administration Agent is not installed.
[19:32:26.906] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Command Line Utilities
[19:32:26.906] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:26.906] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {52446750-c08e-49ef-8c2e-1e0662791e7b}: verified product code {9d573e71-1077-4c7e-b4db-4e22a5d2b48b}.
[19:32:26.907] [ 1] [VERB ] Package=Microsoft SQL Server 2012 Command Line Utilities , Version=11.0.2100.60, ProductCode=9d573e71-1077-4c7e-b4db-4e22a5d2b48b, UpgradeCode=52446750-c08e-49ef-8c2e-1e0662791e7b
[19:32:26.907] [ 1] [INFO ] Determining installation action for Microsoft SQL Server 2012 Command Line Utilities (52446750-c08e-49ef-8c2e-1e0662791e7b)
[19:32:26.907] [ 1] [INFO ] Product Microsoft SQL Server 2012 Command Line Utilities (version 11.0.2100.60) is installed.
[19:32:26.907] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Express LocalDB
[19:32:26.907] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:26.907] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {c3593f78-0f11-4d8d-8d82-55460308e261}: no registered products found.
[19:32:26.907] [ 1] [INFO ] Determining installation action for Microsoft SQL Server 2012 Express LocalDB (c3593f78-0f11-4d8d-8d82-55460308e261)
[19:32:26.907] [ 1] [INFO ] Product Microsoft SQL Server 2012 Express LocalDB is not installed.
[19:32:26.907] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Native Client
[19:32:26.907] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:26.907] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {1d2d1fa0-e158-4798-98c6-a296f55414f9}: no registered products found.
[19:32:26.907] [ 1] [INFO ] Determining installation action for Microsoft SQL Server 2012 Native Client (1d2d1fa0-e158-4798-98c6-a296f55414f9)
[19:32:26.907] [ 1] [INFO ] Product Microsoft SQL Server 2012 Native Client is not installed.
[19:32:26.907] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent
[19:32:26.907] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:26.907] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {fb3feca7-5190-43e7-8d4b-5eec88ed9455}: no registered products found.
[19:32:26.907] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (fb3feca7-5190-43e7-8d4b-5eec88ed9455)
[19:32:26.907] [ 1] [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.
[19:32:26.908] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connection Tool.
[19:32:27.028] [ 1] [WARN ] Failed to read DisplayName registry key: An error occurred while executing the 'Get-ItemProperty' command. Cannot find path 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MicrosoftAzureADConnectionTool' because it does not exist.
[19:32:27.028] [ 1] [INFO ] Product Microsoft Azure AD Connection Tool is not installed.
[19:32:27.028] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure Active Directory Connect
[19:32:27.028] [ 1] [VERB ] Getting list of installed packages by upgrade code
[19:32:27.029] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {d61eb959-f2d1-4170-be64-4dc367f451ea}: verified product code {034b6f7c-4377-456e-9402-dc1e3599df26}.
[19:32:27.029] [ 1] [VERB ] Package=Microsoft Azure AD Connect, Version=1.6.16.0, ProductCode=034b6f7c-4377-456e-9402-dc1e3599df26, UpgradeCode=d61eb959-f2d1-4170-be64-4dc367f451ea
[19:32:27.029] [ 1] [INFO ] Determining installation action for Azure Active Directory Connect (d61eb959-f2d1-4170-be64-4dc367f451ea)
[19:32:27.029] [ 1] [INFO ] Product Azure Active Directory Connect (version 1.6.16.0) is installed.
[19:32:27.029] [ 1] [INFO ] DetectInstalledComponents stage: Verifying required DCOM registry keys are present.
[19:32:27.035] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineAccessRestriction' is present.
[19:32:27.035] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineLaunchRestriction' is present.
[19:32:27.035] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\DefaultLaunchPermission' is present.
[19:32:27.320] [ 1] [INFO ] ServiceControllerProvider: GetServiceStartMode(seclogon) is 'Manual'.
[19:32:27.321] [ 1] [INFO ] ServiceControllerProvider: verifying EventLog is in state (Running)
[19:32:27.322] [ 1] [INFO ] ServiceControllerProvider: current service status: Running
[19:32:27.322] [ 1] [INFO ] DetectInstalledComponents stage: Sync engine upgrade required.
[19:32:27.323] [ 1] [WARN ] MicrosoftOnlinePersistedStateProvider.Backup: unable to locate the persisted state file for backup. Path: C:\ProgramData\AADConnect\PersistedState.xml
[19:32:27.398] [ 1] [INFO ] CallExportSyncConfig: launching ExportSyncConfig.exe.
[19:32:29.341] [ 1] [INFO ] ServiceControllerProvider: verifying ADSync is in state (Running)
[19:32:29.342] [ 1] [ERROR] Caught an exception while creating the initial page set on the root page.
Exception Data (Raw): System.InvalidOperationException: Service ADSync was not found on computer '.'. ---> System.ComponentModel.Win32Exception: The specified service does not exist as an installed service
--- End of inner exception stack trace ---
at System.ServiceProcess.ServiceController.GenerateNames()
at System.ServiceProcess.ServiceController.get_ServiceName()
at System.ServiceProcess.ServiceController.GenerateStatus()
at System.ServiceProcess.ServiceController.get_Status()
at Microsoft.Online.Deployment.Framework.Providers.ServiceControllerProvider.IsServiceInState(String serviceName, ServiceControllerStatus desiredStatus)
at Microsoft.Online.Deployment.OneADWizard.Runtime.Stages.DetectInstalledComponents.Execute(String& message, GlobalContext globalWizardContext, Boolean& isPasswordSyncSupported)
at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.RootPageViewModel.GetInitialPagesCore()
at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.RootPageViewModel.GetInitialPages()
[19:32:56.426] [ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20220131-193218.log

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,442 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Givary-MSFT 27,796 Reputation points Microsoft Employee
    2022-02-01T05:32:39.137+00:00

    @Bill Artemik

    Thank you for reaching out to us. After reviewing the above trace logs, i see old version of Azure AD Connect is still present on the server.

    Did you follow the solution mentioned in this article - https://learn.microsoft.com/en-us/troubleshoot/azure/active-directory/troubleshoot-aad-connect-fails-to-install-upgraded-version

    Let me know if the issue still persists.