I was having issues with AAD Connect so I attempted to uninstall it. I'm trying to reinstall it now and its giving this error: Service ADSync was not found on computer '.'.
Here is the log file:
[13:43:42.843] [ 1] [INFO ]
[13:43:42.859] [ 1] [INFO ] ================================================================================
[13:43:42.859] [ 1] [INFO ] Application starting
[13:43:42.859] [ 1] [INFO ] ================================================================================
[13:43:42.859] [ 1] [INFO ] Start Time (Local): Tue, 20 Apr 2021 13:43:42 GMT
[13:43:42.859] [ 1] [INFO ] Start Time (UTC): Tue, 20 Apr 2021 17:43:42 GMT
[13:43:42.859] [ 1] [INFO ] Application Version: 1.6.4.0
[13:43:42.859] [ 1] [INFO ] Application Build Date: 1911-05-02 06:02:51Z
[13:43:45.124] [ 1] [INFO ] Telemetry session identifier: {bf7760a1-caab-415c-ab54-4249d283cecc}
[13:43:45.124] [ 1] [INFO ] Telemetry device identifier: suMQgJ+a1D6nQ3laHQl6p05T/EiJvmR3H2fodHM1Sc8=
[13:43:45.124] [ 1] [INFO ] Application Build Identifier: AD-IAM-HybridSync master (5921fd4f6)
[13:43:45.296] [ 1] [INFO ] machine.config path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config.
[13:43:45.312] [ 1] [INFO ] Default Proxy [ProxyAddress]: <Unspecified>
[13:43:45.312] [ 1] [INFO ] Default Proxy [UseSystemDefault]: Unspecified
[13:43:45.312] [ 1] [INFO ] Default Proxy [BypassOnLocal]: Unspecified
[13:43:45.312] [ 1] [INFO ] Default Proxy [Enabled]: True
[13:43:45.312] [ 1] [INFO ] Default Proxy [AutoDetect]: Unspecified
[13:43:45.312] [ 1] [INFO ] Default Proxy [UseDefaultCredentials]: False
[13:43:45.359] [ 1] [VERB ] Scheduler wizard mutex wait timeout: 00:00:05
[13:43:50.359] [ 1] [ERROR] AADConnect changes DISALLOWED: Unable to acquire the configuration change mutex.
[13:43:50.452] [ 1] [INFO ] RootPageViewModel.GetInitialPages: Beginning detection for creating initial pages.
[13:43:50.468] [ 1] [INFO ] Checking if machine version is 6.1.7601 or higher
[13:43:50.546] [ 1] [INFO ] The current operating system version is 10.0.17763, the requirement is 6.1.7601.
[13:43:50.546] [ 1] [INFO ] Password Hash Sync supported: 'True'
[13:43:50.593] [ 1] [INFO ] DetectInstalledComponents stage: The installed OS SKU is 7
[13:43:50.609] [ 1] [INFO ] DetectInstalledComponents stage: Checking install context.
[13:43:50.624] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Visual C++ 2013 Redistributable Package
[13:43:50.624] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:50.640] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {20400cf0-de7c-327e-9ae4-f0f38d9085f8}: verified product code {a749d8e6-b613-3be3-8f5f-045c84eba29b}.
[13:43:50.640] [ 1] [VERB ] Package=Microsoft Visual C++ 2013 x64 Minimum Runtime - 12.0.21005, Version=12.0.21005, ProductCode=a749d8e6-b613-3be3-8f5f-045c84eba29b, UpgradeCode=20400cf0-de7c-327e-9ae4-f0f38d9085f8
[13:43:50.640] [ 1] [INFO ] Determining installation action for Microsoft Visual C++ 2013 Redistributable Package (20400cf0-de7c-327e-9ae4-f0f38d9085f8)
[13:43:50.656] [ 1] [INFO ] Product Microsoft Visual C++ 2013 Redistributable Package (version 12.0.21005) is installed.
[13:43:50.656] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Directory Sync Tool
[13:43:50.656] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:50.656] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.
[13:43:50.656] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.
[13:43:50.656] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: verified product code {525aa4eb-dbe5-4ce9-8a57-cb488eeb1bc9}.
[13:43:50.656] [ 1] [VERB ] Package=Microsoft Azure AD Connect synchronization services, Version=1.5.45.0, ProductCode=525aa4eb-dbe5-4ce9-8a57-cb488eeb1bc9, UpgradeCode=545334d7-13cd-4bab-8da1-2775fa8cf7c2
[13:43:50.671] [ 1] [INFO ] Determining installation action for Microsoft Directory Sync Tool UpgradeCodes {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}, {dc9e604e-37b0-4efc-b429-21721cf49d0d}
[13:43:50.671] [ 1] [INFO ] DirectorySyncComponent: Product Microsoft Directory Sync Tool is not installed.
[13:43:50.671] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Sync Engine
[13:43:50.671] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:50.671] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: verified product code {525aa4eb-dbe5-4ce9-8a57-cb488eeb1bc9}.
[13:43:50.671] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.
[13:43:50.671] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.
[13:43:50.671] [ 1] [VERB ] Package=Microsoft Azure AD Connect synchronization services, Version=1.5.45.0, ProductCode=525aa4eb-dbe5-4ce9-8a57-cb488eeb1bc9, UpgradeCode=545334d7-13cd-4bab-8da1-2775fa8cf7c2
[13:43:50.671] [ 1] [INFO ] Determining installation action for Azure AD Sync Engine (545334d7-13cd-4bab-8da1-2775fa8cf7c2)
[13:43:51.296] [ 1] [VERB ] Check product code installed: {4e67cad2-d71b-4f06-a7ae-bb49c566bb93}
[13:43:51.296] [ 1] [INFO ] GetProductInfoProperty({4e67cad2-d71b-4f06-a7ae-bb49c566bb93}, VersionString): unknown product
[13:43:51.296] [ 1] [INFO ] AzureADSyncEngineComponent: Product Azure AD Sync Engine (version 1.5.45.0) is installed, needs to be upgraded to version 1.6.4.0.
[13:43:51.296] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Synchronization Agent
[13:43:51.296] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:51.296] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {3cd653e3-5195-4ff2-9d6c-db3dacc82c25}: no registered products found.
[13:43:51.296] [ 1] [INFO ] Determining installation action for Azure AD Connect Synchronization Agent (3cd653e3-5195-4ff2-9d6c-db3dacc82c25)
[13:43:51.296] [ 1] [INFO ] Product Azure AD Connect Synchronization Agent is not installed.
[13:43:51.296] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Health agent for sync
[13:43:51.296] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:51.296] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {114fb294-8aa6-43db-9e5c-4ede5e32886f}: no registered products found.
[13:43:51.296] [ 1] [INFO ] Determining installation action for Azure AD Connect Health agent for sync (114fb294-8aa6-43db-9e5c-4ede5e32886f)
[13:43:51.296] [ 1] [INFO ] Product Azure AD Connect Health agent for sync is not installed.
[13:43:51.296] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent
[13:43:51.296] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:51.296] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {0c06f9df-c56b-42c4-a41b-f5f64d01a35c}: no registered products found.
[13:43:51.296] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (0c06f9df-c56b-42c4-a41b-f5f64d01a35c)
[13:43:51.296] [ 1] [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.
[13:43:51.296] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Administration Agent
[13:43:51.296] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:51.296] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {886051ec-1165-4df8-a492-19d1e0ff57ee}: no registered products found.
[13:43:51.296] [ 1] [INFO ] Determining installation action for Azure AD Connect Administration Agent (886051ec-1165-4df8-a492-19d1e0ff57ee)
[13:43:51.296] [ 1] [INFO ] Product Azure AD Connect Administration Agent is not installed.
[13:43:51.296] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Command Line Utilities
[13:43:51.296] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:51.312] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {52446750-c08e-49ef-8c2e-1e0662791e7b}: no registered products found.
[13:43:51.312] [ 1] [INFO ] Determining installation action for Microsoft SQL Server 2012 Command Line Utilities (52446750-c08e-49ef-8c2e-1e0662791e7b)
[13:43:51.312] [ 1] [INFO ] Product Microsoft SQL Server 2012 Command Line Utilities is not installed.
[13:43:51.312] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Express LocalDB
[13:43:51.312] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:51.312] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {c3593f78-0f11-4d8d-8d82-55460308e261}: no registered products found.
[13:43:51.312] [ 1] [INFO ] Determining installation action for Microsoft SQL Server 2012 Express LocalDB (c3593f78-0f11-4d8d-8d82-55460308e261)
[13:43:51.312] [ 1] [INFO ] Product Microsoft SQL Server 2012 Express LocalDB is not installed.
[13:43:51.312] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Native Client
[13:43:51.312] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:51.312] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {1d2d1fa0-e158-4798-98c6-a296f55414f9}: verified product code {9d93d367-a2cc-4378-bd63-79ef3fe76c78}.
[13:43:51.312] [ 1] [VERB ] Package=Microsoft SQL Server 2012 Native Client , Version=11.4.7462.6, ProductCode=9d93d367-a2cc-4378-bd63-79ef3fe76c78, UpgradeCode=1d2d1fa0-e158-4798-98c6-a296f55414f9
[13:43:51.312] [ 1] [INFO ] Determining installation action for Microsoft SQL Server 2012 Native Client (1d2d1fa0-e158-4798-98c6-a296f55414f9)
[13:43:51.312] [ 1] [INFO ] Product Microsoft SQL Server 2012 Native Client (version 11.4.7462.6) is installed.
[13:43:51.312] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent
[13:43:51.312] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:51.312] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {fb3feca7-5190-43e7-8d4b-5eec88ed9455}: no registered products found.
[13:43:51.312] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (fb3feca7-5190-43e7-8d4b-5eec88ed9455)
[13:43:51.312] [ 1] [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.
[13:43:51.312] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connection Tool.
[13:43:51.359] [ 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.
[13:43:51.359] [ 1] [INFO ] Product Microsoft Azure AD Connection Tool is not installed.
[13:43:51.359] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure Active Directory Connect
[13:43:51.359] [ 1] [VERB ] Getting list of installed packages by upgrade code
[13:43:51.359] [ 1] [INFO ] GetProductInfoProperty({57387577-ff9a-40e5-b647-1b2e65ac59e0}, VersionString): unknown product
[13:43:51.359] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {d61eb959-f2d1-4170-be64-4dc367f451ea}: stale product code {57387577-ff9a-40e5-b647-1b2e65ac59e0}.
[13:43:51.359] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {d61eb959-f2d1-4170-be64-4dc367f451ea}: no registered products found.
[13:43:51.359] [ 1] [WARN ] CheckInstallationState: Stale product code: {57387577-ff9a-40e5-b647-1b2e65ac59e0} found for Azure Active Directory Connect. The installation of this component could fail.
[13:43:51.359] [ 1] [WARN ] CheckInstallationState: By uninstalling AADConnect Wizard, an attempt to remove the stale product codes will be performed
[13:43:51.359] [ 1] [INFO ] Determining installation action for Azure Active Directory Connect (d61eb959-f2d1-4170-be64-4dc367f451ea)
[13:43:51.359] [ 1] [INFO ] Product Azure Active Directory Connect is not installed.
[13:43:51.359] [ 1] [INFO ] DetectInstalledComponents stage: Verifying required DCOM registry keys are present.
[13:43:51.374] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineAccessRestriction' is present.
[13:43:51.374] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineLaunchRestriction' is present.
[13:43:51.374] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\DefaultLaunchPermission' is present.
[13:43:51.718] [ 1] [INFO ] ServiceControllerProvider: GetServiceStartMode(seclogon) is 'Manual'.
[13:43:51.718] [ 1] [INFO ] ServiceControllerProvider: verifying EventLog is in state (Running)
[13:43:51.718] [ 1] [INFO ] ServiceControllerProvider: current service status: Running
[13:43:51.718] [ 1] [INFO ] DetectInstalledComponents stage: Sync engine upgrade required.
[13:43:51.718] [ 1] [WARN ] MicrosoftOnlinePersistedStateProvider.Backup: unable to locate the persisted state file for backup. Path: C:\ProgramData\AADConnect\PersistedState.xml
[13:43:51.827] [ 1] [INFO ] CallExportSyncConfig: launching ExportSyncConfig.exe.
[13:43:53.062] [ 1] [INFO ] ServiceControllerProvider: verifying ADSync is in state (Running)
[13:43:53.077] [ 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()
[13:49:04.955] [ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20210420-134342.log
[14:01:36.341] [ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20210420-134342.log