Azure AD Connect - Cannot install after uninstallation

Vincent Dupont 0 Reputation points
2023-07-06T15:50:30.2566667+00:00

We have been running a Windows Server 2019 in hybrid mode with Azure AD Connect since around February of this year. There were no real issues whatsoever with Azure or the server itself until June where sync error became to pop into our emails.

Upon openning the Azure AD Connect client I was face with an upgrade message which would continuously with errors such as "there is already a new version installed", and so upon opening the client it kept going to that page where and was effectively stuck into the upgrade screen.

So the AAD Connect client was uninstalled and reinstalled, the installer itself gave no warning only when it opened the client automaticly it came stuck to the first picture and now everytime it is opened again it goes to that same error. Here is the picture :

stuck in install

And here is the trace log in question :

[11:29:08.417] [ 1] [INFO ] Setting default logger for MSAL provider..

[11:29:08.419] [ 1] [INFO ] Default logger set successfully.

[11:29:08.454] [ 1] [INFO ]

[11:29:08.454] [ 1] [INFO ] ================================================================================

[11:29:08.454] [ 1] [INFO ] Application starting

[11:29:08.454] [ 1] [INFO ] ================================================================================

[11:29:08.454] [ 1] [INFO ] Start Time (Local): Thu, 06 Jul 2023 11:29:08 GMT

[11:29:08.454] [ 1] [INFO ] Start Time (UTC): Thu, 06 Jul 2023 15:29:08 GMT

[11:29:08.456] [ 1] [INFO ] Application Version: 2.2.1.0

[11:29:08.456] [ 1] [INFO ] Application Build Date: 1903-04-01 17:06:36Z

[11:29:14.572] [ 1] [INFO ] Telemetry session identifier: {4242d22d-75e7-42e1-a79d-ab01d9f5c24a}

[11:29:14.572] [ 1] [INFO ] Telemetry device identifier: NFt1fA9F+SDWx61MXkCunM8qoH4Uh1tjl66Vdr+S3QQ=

[11:29:14.572] [ 1] [INFO ] Application Build Identifier: AD-IAM-HybridSync master (fe039f72523514d7973f6767c8415c2beabad102)

[11:29:14.768] [ 1] [INFO ] machine.config path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config.

[11:29:14.768] [ 1] [INFO ] Default Proxy [ProxyAddress]: <Unspecified>

[11:29:14.768] [ 1] [INFO ] Default Proxy [UseSystemDefault]: Unspecified

[11:29:14.768] [ 1] [INFO ] Default Proxy [BypassOnLocal]: Unspecified

[11:29:14.768] [ 1] [INFO ] Default Proxy [Enabled]: True

[11:29:14.768] [ 1] [INFO ] Default Proxy [AutoDetect]: Unspecified

[11:29:14.768] [ 1] [INFO ] Default Proxy [UseDefaultCredentials]: False

[11:29:14.792] [ 1] [VERB ] Scheduler wizard mutex wait timeout: 00:00:05

[11:29:14.792] [ 1] [INFO ] AADConnect changes ALLOWED: Successfully acquired the configuration change mutex.

[11:29:14.839] [ 1] [INFO ] RootPageViewModel.GetInitialPages: Beginning detection for creating initial pages.

[11:29:14.857] [ 1] [INFO ] Loading the persisted settings .

[11:29:14.877] [ 1] [INFO ] Checking if machine version is 6.1.7601 or higher

[11:29:15.021] [ 1] [INFO ] The current operating system version is 10.0.17763, the requirement is 6.1.7601.

[11:29:15.021] [ 1] [INFO ] Password Hash Sync supported: 'True'

[11:29:15.165] [ 1] [INFO ] DetectInstalledComponents stage: The installed OS SKU is 7

[11:29:15.168] [ 1] [INFO ] Detected .NET release 461814

[11:29:15.168] [ 1] [INFO ] TLS 1.2 is properly configured.

[11:29:15.174] [ 1] [INFO ] DetectInstalledComponents stage: Checking install context.

[11:29:15.177] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Visual C++ 2019 Redistributable Package

[11:29:15.179] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.186] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {36f68a90-239c-34df-b58c-64b30153ce35}: verified product code {c96241ea-9900-4fe8-85b3-1e238d509df6}.

[11:29:15.186] [ 1] [VERB ] Package=Microsoft Visual C++ 2022 X64 Minimum Runtime - 14.32.31326, Version=14.32.31326, ProductCode=c96241ea-9900-4fe8-85b3-1e238d509df6, UpgradeCode=36f68a90-239c-34df-b58c-64b30153ce35

[11:29:15.187] [ 1] [INFO ] Determining installation action for Microsoft Visual C++ 2019 Redistributable Package (36f68a90-239c-34df-b58c-64b30153ce35)

[11:29:15.187] [ 1] [INFO ] Product Microsoft Visual C++ 2019 Redistributable Package (version 14.32.31326) is installed.

[11:29:15.188] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Directory Sync Tool

[11:29:15.188] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.188] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.

[11:29:15.188] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.

[11:29:15.189] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: no registered products found.

[11:29:15.202] [ 1] [INFO ] Determining installation action for Microsoft Directory Sync Tool UpgradeCodes {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}, {dc9e604e-37b0-4efc-b429-21721cf49d0d}

[11:29:15.202] [ 1] [INFO ] DirectorySyncComponent: Product Microsoft Directory Sync Tool is not installed.

[11:29:15.202] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Sync Engine

[11:29:15.203] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.203] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: no registered products found.

[11:29:15.203] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.

[11:29:15.203] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.

[11:29:15.205] [ 1] [INFO ] Determining installation action for Azure AD Sync Engine (545334d7-13cd-4bab-8da1-2775fa8cf7c2)

[11:29:15.499] [ 1] [INFO ] Product Azure AD Sync Engine is not installed.

[11:29:15.499] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Synchronization Agent

[11:29:15.499] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.499] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {3cd653e3-5195-4ff2-9d6c-db3dacc82c25}: no registered products found.

[11:29:15.499] [ 1] [INFO ] Determining installation action for Azure AD Connect Synchronization Agent (3cd653e3-5195-4ff2-9d6c-db3dacc82c25)

[11:29:15.499] [ 1] [INFO ] Product Azure AD Connect Synchronization Agent is not installed.

[11:29:15.499] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Health agent for sync

[11:29:15.499] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.499] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {114fb294-8aa6-43db-9e5c-4ede5e32886f}: no registered products found.

[11:29:15.499] [ 1] [INFO ] Determining installation action for Azure AD Connect Health agent for sync (114fb294-8aa6-43db-9e5c-4ede5e32886f)

[11:29:15.499] [ 1] [INFO ] Product Azure AD Connect Health agent for sync is not installed.

[11:29:15.499] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent

[11:29:15.499] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.500] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {0c06f9df-c56b-42c4-a41b-f5f64d01a35c}: no registered products found.

[11:29:15.500] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (0c06f9df-c56b-42c4-a41b-f5f64d01a35c)

[11:29:15.500] [ 1] [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.

[11:29:15.500] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Administration Agent

[11:29:15.500] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.500] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {886051ec-1165-4df8-a492-19d1e0ff57ee}: no registered products found.

[11:29:15.500] [ 1] [INFO ] Determining installation action for Azure AD Connect Administration Agent (886051ec-1165-4df8-a492-19d1e0ff57ee)

[11:29:15.500] [ 1] [INFO ] Product Azure AD Connect Administration Agent is not installed.

[11:29:15.500] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Command Line Utilities 15 for SQL Server

[11:29:15.500] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.500] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {11e5cc67-2eca-41a1-8775-5ea0b51ccbaa}: no registered products found.

[11:29:15.500] [ 1] [INFO ] Determining installation action for Microsoft Command Line Utilities 15 for SQL Server (11e5cc67-2eca-41a1-8775-5ea0b51ccbaa)

[11:29:15.500] [ 1] [INFO ] Product Microsoft Command Line Utilities 15 for SQL Server is not installed.

[11:29:15.500] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft ODBC Driver 17 for SQL Server

[11:29:15.500] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.500] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {0123a210-9b73-46e7-b5ce-7f33630300e7}: no registered products found.

[11:29:15.500] [ 1] [INFO ] Determining installation action for Microsoft ODBC Driver 17 for SQL Server (0123a210-9b73-46e7-b5ce-7f33630300e7)

[11:29:15.500] [ 1] [INFO ] Product Microsoft ODBC Driver 17 for SQL Server is not installed.

[11:29:15.500] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2019 LocalDB

[11:29:15.500] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.500] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {f0176a51-908a-4240-8853-e229d0ae3f39}: no registered products found.

[11:29:15.500] [ 1] [INFO ] Determining installation action for Microsoft SQL Server 2019 LocalDB (f0176a51-908a-4240-8853-e229d0ae3f39)

[11:29:15.500] [ 1] [INFO ] Product Microsoft SQL Server 2019 LocalDB is not installed.

[11:29:15.500] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft OLE DB Driver for SQL Server

[11:29:15.500] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.500] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {debb0805-202c-471d-a182-675ff32f65c2}: no registered products found.

[11:29:15.500] [ 1] [INFO ] Determining installation action for Microsoft OLE DB Driver for SQL Server (debb0805-202c-471d-a182-675ff32f65c2)

[11:29:15.500] [ 1] [INFO ] Product Microsoft OLE DB Driver for SQL Server is not installed.

[11:29:15.500] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent

[11:29:15.500] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.500] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {fb3feca7-5190-43e7-8d4b-5eec88ed9455}: no registered products found.

[11:29:15.500] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (fb3feca7-5190-43e7-8d4b-5eec88ed9455)

[11:29:15.500] [ 1] [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.

[11:29:15.501] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connection Tool.

[11:29:15.520] [ 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.

[11:29:15.520] [ 1] [INFO ] Product Microsoft Azure AD Connection Tool is not installed.

[11:29:15.520] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure Active Directory Connect

[11:29:15.520] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.521] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {d61eb959-f2d1-4170-be64-4dc367f451ea}: verified product code {b9ee21fa-26a0-4077-a6c0-c7b44b429dd7}.

[11:29:15.521] [ 1] [VERB ] Package=Microsoft Azure AD Connect, Version=2.2.1.0, ProductCode=b9ee21fa-26a0-4077-a6c0-c7b44b429dd7, UpgradeCode=d61eb959-f2d1-4170-be64-4dc367f451ea

[11:29:15.521] [ 1] [INFO ] Determining installation action for Azure Active Directory Connect (d61eb959-f2d1-4170-be64-4dc367f451ea)

[11:29:15.521] [ 1] [INFO ] Product Azure Active Directory Connect (version 2.2.1.0) is installed.

[11:29:15.521] [ 1] [INFO ] DetectInstalledComponents stage: Verifying required DCOM registry keys are present.

[11:29:15.523] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineAccessRestriction' is present.

[11:29:15.523] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineLaunchRestriction' is present.

[11:29:15.524] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\DefaultLaunchPermission' is present.

[11:29:15.738] [ 1] [INFO ] ServiceControllerProvider: GetServiceStartMode(seclogon) is 'Manual'.

[11:29:15.739] [ 1] [INFO ] ServiceControllerProvider: verifying EventLog is in state (Running)

[11:29:15.740] [ 1] [INFO ] ServiceControllerProvider: current service status: Running

[11:29:15.740] [ 1] [INFO ] DetectInstalledComponents stage: PowerShell version verified.

[11:29:15.742] [ 1] [INFO ] DetectInstalledComponents: customSD -

[11:29:15.742] [ 1] [INFO ] DetectInstalledComponents: No custom permissions!!

[11:29:15.743] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Administration Agent

[11:29:15.743] [ 1] [VERB ] Getting list of installed packages by upgrade code

[11:29:15.743] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {886051ec-1165-4df8-a492-19d1e0ff57ee}: no registered products found.

[11:29:15.743] [ 1] [INFO ] Determining installation action for Azure AD Connect Administration Agent (886051ec-1165-4df8-a492-19d1e0ff57ee)

[11:29:15.743] [ 1] [INFO ] Product Azure AD Connect Administration Agent is not installed.

[11:29:15.743] [ 1] [INFO ] Checking for DirSync conditions.

[11:29:15.743] [ 1] [INFO ] DirSync not detected. Checking for AADSync/AADConnect upgrade conditions.

[11:29:15.745] [ 1] [INFO ] Initial configuration is incomplete.

[11:29:29.681] [ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20230706-112908.log

[11:46:32.191] [ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20230706-112908.log

I already looked at similar problems but nothing helped.

Thank you for your help and recommendations.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,486 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,229 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,730 questions
{count} votes

1 answer

Sort by: Most helpful
  1. dm21 0 Reputation points
    2023-10-27T21:43:25.11+00:00
    0 comments No comments