Microsoft Azure AD Connect will not install

Mika_QDX 0 Reputation points
2023-02-27T12:20:19.9533333+00:00

I tried to install Microsoft Azure AD Connect (Customize) on a Domain Controller with Windows Server 2016 but i got the following error :

"The event log file is corrupted"

When i look the logs files, i find the error here :

[17:53:52.454] [ 15] [ERROR] InstallSyncEnginePageViewModel: Error occurred while installing sync engine.

Exception Data (Raw): System.ComponentModel.Win32Exception (0x80004005): Le fichier journal d’événements est endommagé

à System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)

à System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)

à System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)

à Microsoft.Online.Deployment.Client.Framework.Tracer.TypeDependencies.EventLogWriteEntry(String eventSource, EventLogEntryType eventLogEntryType, Int32 eventId, String message)

à Microsoft.Online.Deployment.Client.Framework.Tracer.TraceToEventLog(EventLogEntryType eventLogEntryType, Int32 eventId, Func`1 traceMessageProvider)

à Microsoft.Online.Deployment.Client.Framework.Tracer.TraceError(Int32 eventId, String messageFormat, Object[] args)

à Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SetupBase.ThrowSetupTaskFailureException(String exceptionFormatString, String taskName, Exception innerException)

à Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SetupBase.Install()

à Microsoft.Online.Deployment.OneADWizard.Runtime.Stages.InstallSyncEngineStage.ExecuteInstallCore(ISyncEngineInstallContext syncEngineInstallContext, ProgressChangedEventHandler progressChangesEventHandler)

à Microsoft.Online.Deployment.OneADWizard.Runtime.Stages.InstallSyncEngineStage.ExecuteInstall(ISyncEngineInstallContext syncEngineInstallContext, ProgressChangedEventHandler progressChangesEventHandler)

à Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.InstallSyncEnginePageViewModel.StartNewInstallation(Boolean skipSyncEngineInstall)

[11:10:03.375] [ 1] [VERB ] ReleaseSyncConfigurationMutex(): Releasing sync config changes mutex.

I have no idea why i got this error.

I open the event log file, everything is ok.

If someone got an idea or already got this error, thank you in advance for the help.

Mika

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,644 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,114 questions
{count} votes

4 answers

Sort by: Most helpful
  1. JimmySalian-2011 42,156 Reputation points
    2023-02-27T12:41:15.9566667+00:00

    Hi,

    Can you provide compete log file from the folder please? Also check the pre-requisites to install AD Connect tool this should give you a start - https://video2.skills-academy.com/en-us/azure/active-directory/hybrid/how-to-connect-install-prerequisites

    Check the security settings on the DC and other policy settings, I will suggest you install AD Connect on a standard non DC server, as a best practice you should install on a server that is not a Domain Controller, SQL Server. So a standard Windows server member server ideally is recommended so this kind of issue does not occur.

    Hope this helps.

    JS

    ==

    Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.

    0 comments No comments

  2. Thameur-BOURBITA 33,006 Reputation points
    2023-02-27T13:05:06.8166667+00:00

    Hi @Mika_QDX

    Why you try install Azure AD Connect on domain controller ?

    You shoud install Azure AD connect on member server (Windows 2019 or 2016) but not in a domain controller.

    Take note that Azure AD connect need to be exposed to internet to communicate with Microsoft URLs. So if you install it on domain controller , you will expose your domain controller to internet.

    To get more details , you can read the following link :

    https://video2.skills-academy.com/en-us/azure/active-directory/hybrid/how-to-connect-install-prerequisites#before-you-install-azure-ad-connect

    Please don't forget to mark helpful answer as accepted

    0 comments No comments

  3. Mika_QDX 0 Reputation points
    2023-02-28T10:21:23.07+00:00

    Hi Marshaljs and Thameur,

    Thank you for your answer and your advices.

    I will check and make the necessary changes and especially not try to install Azure Ad Connect on a domain controller.

    Here the full log file :

    [17:51:31.198] [  1] [INFO ] Setting default logger for MSAL provider..
    [17:51:31.198] [  1] [INFO ] Default logger set successfully.
    [17:51:31.713] [  1] [INFO ] 
    [17:51:31.713] [  1] [INFO ] ================================================================================
    [17:51:31.713] [  1] [INFO ] Application starting
    [17:51:31.713] [  1] [INFO ] ================================================================================
    [17:51:31.713] [  1] [INFO ] Start Time (Local): Thu, 23 Feb 2023 17:51:31 GMT
    [17:51:31.713] [  1] [INFO ] Start Time (UTC): Thu, 23 Feb 2023 16:51:31 GMT
    [17:51:31.713] [  1] [INFO ] Application Version: 2.1.20.0
    [17:51:31.713] [  1] [INFO ] Application Build Date: 1949-11-03 22:58:18Z
    [17:51:32.917] [  1] [INFO ] Telemetry session identifier: {d81af6e3-43ae-4d56-8349-08277d016788}
    [17:51:32.917] [  1] [INFO ] Telemetry device identifier: BRye/azopqnpDW6HX8UOVR8thVy6Tkh8DxLPjz9Yh5k=
    [17:51:32.917] [  1] [INFO ] Application Build Identifier: AD-IAM-HybridSync master (e93300c6dcb8fd28c350447d25e08bfc4deefd5d)
    [17:51:33.136] [  1] [INFO ] machine.config path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config.
    [17:51:33.151] [  1] [INFO ] Default Proxy [ProxyAddress]: <Unspecified>
    [17:51:33.151] [  1] [INFO ] Default Proxy [UseSystemDefault]: Unspecified
    [17:51:33.151] [  1] [INFO ] Default Proxy [BypassOnLocal]: Unspecified
    [17:51:33.151] [  1] [INFO ] Default Proxy [Enabled]: True
    [17:51:33.151] [  1] [INFO ] Default Proxy [AutoDetect]: Unspecified
    [17:51:33.151] [  1] [INFO ] Default Proxy [UseDefaultCredentials]: False
    [17:51:33.386] [  1] [VERB ] Scheduler wizard mutex wait timeout: 00:00:05
    [17:51:33.386] [  1] [INFO ] AADConnect changes ALLOWED: Successfully acquired the configuration change mutex.
    [17:51:33.464] [  1] [INFO ] RootPageViewModel.GetInitialPages: Beginning detection for creating initial pages.
    [17:51:33.495] [  1] [INFO ] Loading the persisted settings .
    [17:51:33.667] [  1] [INFO ] Checking if machine version is 6.1.7601 or higher
    [17:51:33.698] [  1] [INFO ] The current operating system version is 10.0.14393, the requirement is 6.1.7601.
    [17:51:33.698] [  1] [INFO ] Password Hash Sync supported: 'True'
    [17:51:33.745] [  1] [INFO ] DetectInstalledComponents stage: The installed OS SKU is 7
    [17:51:33.761] [  1] [INFO ] Detected .NET release 394802
    [17:51:33.761] [  1] [INFO ] TLS 1.2 is properly configured.
    [17:51:33.761] [  1] [INFO ] DetectInstalledComponents stage: Checking install context.
    [17:51:33.761] [  1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Visual C++ 2019 Redistributable Package
    [17:51:33.761] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:33.776] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {36f68a90-239c-34df-b58c-64b30153ce35}: verified product code {0ae39060-f209-4d05-abc7-54b8f9cfa32e}.
    [17:51:33.776] [  1] [VERB ] Package=Microsoft Visual C++ 2022 X64 Minimum Runtime - 14.34.31938, Version=14.34.31938, ProductCode=0ae39060-f209-4d05-abc7-54b8f9cfa32e, UpgradeCode=36f68a90-239c-34df-b58c-64b30153ce35
    [17:51:33.776] [  1] [INFO ] Determining installation action for Microsoft Visual C++ 2019 Redistributable Package (36f68a90-239c-34df-b58c-64b30153ce35)
    [17:51:33.776] [  1] [INFO ] Product Microsoft Visual C++ 2019 Redistributable Package (version 14.34.31938) is installed.
    [17:51:33.776] [  1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Directory Sync Tool
    [17:51:33.776] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:33.776] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.
    [17:51:33.776] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.
    [17:51:33.776] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: no registered products found.
    [17:51:33.808] [  1] [INFO ] Determining installation action for Microsoft Directory Sync Tool UpgradeCodes {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}, {dc9e604e-37b0-4efc-b429-21721cf49d0d}
    [17:51:33.808] [  1] [INFO ] DirectorySyncComponent: Product Microsoft Directory Sync Tool is not installed.
    [17:51:33.808] [  1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Sync Engine
    [17:51:33.808] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:33.808] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: no registered products found.
    [17:51:33.808] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.
    [17:51:33.808] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.
    [17:51:33.808] [  1] [INFO ] Determining installation action for Azure AD Sync Engine (545334d7-13cd-4bab-8da1-2775fa8cf7c2)
    [17:51:40.356] [  1] [INFO ] Product Azure AD Sync Engine is not installed.
    [17:51:40.356] [  1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Synchronization Agent
    [17:51:40.356] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:40.356] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {3cd653e3-5195-4ff2-9d6c-db3dacc82c25}: no registered products found.
    [17:51:40.356] [  1] [INFO ] Determining installation action for Azure AD Connect Synchronization Agent (3cd653e3-5195-4ff2-9d6c-db3dacc82c25)
    [17:51:40.356] [  1] [INFO ] Product Azure AD Connect Synchronization Agent is not installed.
    [17:51:40.356] [  1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Health agent for sync
    [17:51:40.356] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:40.356] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {114fb294-8aa6-43db-9e5c-4ede5e32886f}: no registered products found.
    [17:51:40.356] [  1] [INFO ] Determining installation action for Azure AD Connect Health agent for sync (114fb294-8aa6-43db-9e5c-4ede5e32886f)
    [17:51:40.356] [  1] [INFO ] Product Azure AD Connect Health agent for sync is not installed.
    [17:51:40.356] [  1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent
    [17:51:40.356] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:40.356] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {0c06f9df-c56b-42c4-a41b-f5f64d01a35c}: no registered products found.
    [17:51:40.356] [  1] [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (0c06f9df-c56b-42c4-a41b-f5f64d01a35c)
    [17:51:40.356] [  1] [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.
    [17:51:40.356] [  1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Administration Agent
    [17:51:40.356] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:40.356] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {886051ec-1165-4df8-a492-19d1e0ff57ee}: no registered products found.
    [17:51:40.356] [  1] [INFO ] Determining installation action for Azure AD Connect Administration Agent (886051ec-1165-4df8-a492-19d1e0ff57ee)
    [17:51:40.356] [  1] [INFO ] Product Azure AD Connect Administration Agent is not installed.
    [17:51:40.356] [  1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Command Line Utilities 15 for SQL Server
    [17:51:40.356] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:40.356] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {11e5cc67-2eca-41a1-8775-5ea0b51ccbaa}: no registered products found.
    [17:51:40.356] [  1] [INFO ] Determining installation action for Microsoft Command Line Utilities 15 for SQL Server (11e5cc67-2eca-41a1-8775-5ea0b51ccbaa)
    [17:51:40.356] [  1] [INFO ] Product Microsoft Command Line Utilities 15 for SQL Server is not installed.
    [17:51:40.356] [  1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft ODBC Driver 17 for SQL Server
    [17:51:40.356] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:40.356] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {0123a210-9b73-46e7-b5ce-7f33630300e7}: no registered products found.
    [17:51:40.356] [  1] [INFO ] Determining installation action for Microsoft ODBC Driver 17 for SQL Server (0123a210-9b73-46e7-b5ce-7f33630300e7)
    [17:51:40.356] [  1] [INFO ] Product Microsoft ODBC Driver 17 for SQL Server is not installed.
    [17:51:40.356] [  1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2019 LocalDB
    [17:51:40.356] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:40.356] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {f0176a51-908a-4240-8853-e229d0ae3f39}: no registered products found.
    [17:51:40.356] [  1] [INFO ] Determining installation action for Microsoft SQL Server 2019 LocalDB (f0176a51-908a-4240-8853-e229d0ae3f39)
    [17:51:40.356] [  1] [INFO ] Product Microsoft SQL Server 2019 LocalDB is not installed.
    [17:51:40.356] [  1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft OLE DB Driver for SQL Server
    [17:51:40.356] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:40.356] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {debb0805-202c-471d-a182-675ff32f65c2}: no registered products found.
    [17:51:40.356] [  1] [INFO ] Determining installation action for Microsoft OLE DB Driver for SQL Server (debb0805-202c-471d-a182-675ff32f65c2)
    [17:51:40.356] [  1] [INFO ] Product Microsoft OLE DB Driver for SQL Server is not installed.
    [17:51:40.356] [  1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent
    [17:51:40.356] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:40.356] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {fb3feca7-5190-43e7-8d4b-5eec88ed9455}: no registered products found.
    [17:51:40.356] [  1] [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (fb3feca7-5190-43e7-8d4b-5eec88ed9455)
    [17:51:40.356] [  1] [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.
    [17:51:40.356] [  1] [INFO ] Determining installation action for Microsoft Azure AD Connection Tool.
    [17:51:40.465] [  1] [WARN ] Failed to read DisplayName registry key: Une erreur s'est produite lors de l’exécution de la commande 'Get-ItemProperty'. Impossible de trouver le chemin d'accès « HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MicrosoftAzureADConnectionTool », car il n'existe pas.
    [17:51:40.465] [  1] [INFO ] Product Microsoft Azure AD Connection Tool is not installed.
    [17:51:40.465] [  1] [INFO ] Performing direct lookup of upgrade codes for: Azure Active Directory Connect
    [17:51:40.465] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:40.465] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {d61eb959-f2d1-4170-be64-4dc367f451ea}: verified product code {2403e0dc-df1e-441b-a35d-84fc4f96e47c}.
    [17:51:40.465] [  1] [VERB ] Package=Microsoft Azure AD Connect, Version=2.1.20.0, ProductCode=2403e0dc-df1e-441b-a35d-84fc4f96e47c, UpgradeCode=d61eb959-f2d1-4170-be64-4dc367f451ea
    [17:51:40.465] [  1] [INFO ] Determining installation action for Azure Active Directory Connect (d61eb959-f2d1-4170-be64-4dc367f451ea)
    [17:51:40.465] [  1] [INFO ] Product Azure Active Directory Connect (version 2.1.20.0) is installed.
    [17:51:40.465] [  1] [INFO ] DetectInstalledComponents stage: Verifying required DCOM registry keys are present.
    [17:51:40.465] [  1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineAccessRestriction' is present.
    [17:51:40.465] [  1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineLaunchRestriction' is present.
    [17:51:40.465] [  1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\DefaultLaunchPermission' is present.
    [17:51:40.950] [  1] [INFO ] ServiceControllerProvider: GetServiceStartMode(seclogon) is 'Manual'.
    [17:51:40.965] [  1] [INFO ] ServiceControllerProvider: verifying EventLog is in state (Running)
    [17:51:40.965] [  1] [INFO ] ServiceControllerProvider: current service status: Running
    [17:51:40.965] [  1] [INFO ] DetectInstalledComponents stage: PowerShell version verified.
    [17:51:40.965] [  1] [INFO ] DetectInstalledComponents: customSD - 
    [17:51:40.965] [  1] [INFO ] DetectInstalledComponents: No custom permissions!!
    [17:51:40.965] [  1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Administration Agent
    [17:51:40.965] [  1] [VERB ] Getting list of installed packages by upgrade code
    [17:51:40.965] [  1] [INFO ] GetInstalledPackagesByUpgradeCode {886051ec-1165-4df8-a492-19d1e0ff57ee}: no registered products found.
    [17:51:40.965] [  1] [INFO ] Determining installation action for Azure AD Connect Administration Agent (886051ec-1165-4df8-a492-19d1e0ff57ee)
    [17:51:40.965] [  1] [INFO ] Product Azure AD Connect Administration Agent is not installed.
    [17:51:40.965] [  1] [INFO ] Checking for DirSync conditions.
    [17:51:40.965] [  1] [INFO ] DirSync not detected. Checking for AADSync/AADConnect upgrade conditions.
    [17:51:40.965] [  1] [INFO ] Sync engine is not present. Performing clean install.
    [17:51:41.012] [  1] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Start background task Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ExpressSettingsPageViewModel.GatherEnvironmentData in Page:"Configuration rapide"
    [17:51:41.012] [  1] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Started Background Task Id:1
    [17:51:41.059] [ 15] [INFO ] Checking if machine version is 6.1.7601 or higher
    [17:51:41.059] [ 15] [INFO ] The current operating system version is 10.0.14393, the requirement is 6.1.7601.
    [17:51:41.059] [ 15] [INFO ] Password Hash Sync supported: 'True'
    [17:51:41.059] [  1] [INFO ] Express Settings install is supported: domain-joined + OS version allowed.
    [17:53:48.772] [  1] [INFO ] Express Settings:  Updating page flow for CUSTOM installation.
    [17:53:48.774] [  1] [INFO ] Called SetWizardMode(CustomInstall, True)
    [17:53:48.776] [  1] [WARN ] MicrosoftOnlinePersistedStateProvider.Save: zero state elements provided, saving an empty persisted state file
    [17:53:48.778] [  1] [INFO ] MicrosoftOnlinePersistedStateProvider.UpdateFileProtection: updating file protection from the persisted state file: C:\ProgramData\AADConnect\PersistedState.xml, isAddProtection: False
    [17:53:48.793] [  1] [INFO ] MicrosoftOnlinePersistedStateProvider.UpdateFileProtection: updating file protection from the persisted state file: C:\ProgramData\AADConnect\PersistedState.xml, isAddProtection: True
    [17:53:48.820] [  1] [INFO ] Page transition from "Configuration rapide" [ExpressSettingsPageViewModel] to "Composants requis" [InstallSyncEnginePageViewModel]
    [17:53:50.969] [  1] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Start background task Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.InstallSyncEnginePageViewModel.StartNewInstallation in Page:"Installer les composants nécessaires"
    [17:53:50.973] [  1] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Started Background Task Id:22666
    [17:53:51.975] [ 15] [INFO ] SyncEngineSetupViewModel: Validating sync engine settings.
    [17:53:51.988] [ 15] [INFO ] Enter ValidateSqlVersion.
    [17:53:51.988] [ 15] [INFO ] Exit ValidateSqlVersion (localdb).
    [17:53:51.991] [ 15] [INFO ] Enter ValidateSqlAoaAsyncInstance.
    [17:53:51.991] [ 15] [INFO ] Exit ValidateSqlAoaAsyncInstance (localdb).
    [17:53:51.993] [ 15] [INFO ] The ADSync database does not exist and will be created.  serverAdmin=True.
    [17:53:51.993] [ 15] [INFO ] Attaching to the ADSync database: SQLServerName= SQLInstanceName= ServiceAccountName=, state=DoesNotExist, Collation=, /UseExistingDatabase=False.
    [17:53:51.995] [ 15] [INFO ] Starting Sync Engine installation
    [17:53:51.997] [ 15] [INFO ] Starting Prerequisite installation
    [17:53:52.012] [ 15] [VERB ] WorkflowEngine created
    [17:53:52.019] [ 15] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Visual C++ 2013 Redistributable Package
    [17:53:52.019] [ 15] [VERB ] Getting list of installed packages by upgrade code
    [17:53:52.019] [ 15] [INFO ] GetInstalledPackagesByUpgradeCode {20400cf0-de7c-327e-9ae4-f0f38d9085f8}: verified product code {a749d8e6-b613-3be3-8f5f-045c84eba29b}.
    [17:53:52.020] [ 15] [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
    [17:53:52.020] [ 15] [INFO ] Determining installation action for Microsoft Visual C++ 2013 Redistributable Package (20400cf0-de7c-327e-9ae4-f0f38d9085f8)
    [17:53:52.020] [ 15] [INFO ] Product Microsoft Visual C++ 2013 Redistributable Package (version 12.0.21005) is installed.
    [17:53:52.020] [ 15] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Visual C++ 2019 Redistributable Package
    [17:53:52.020] [ 15] [VERB ] Getting list of installed packages by upgrade code
    [17:53:52.020] [ 15] [INFO ] GetInstalledPackagesByUpgradeCode {36f68a90-239c-34df-b58c-64b30153ce35}: verified product code {0ae39060-f209-4d05-abc7-54b8f9cfa32e}.
    [17:53:52.021] [ 15] [VERB ] Package=Microsoft Visual C++ 2022 X64 Minimum Runtime - 14.34.31938, Version=14.34.31938, ProductCode=0ae39060-f209-4d05-abc7-54b8f9cfa32e, UpgradeCode=36f68a90-239c-34df-b58c-64b30153ce35
    [17:53:52.021] [ 15] [INFO ] Determining installation action for Microsoft Visual C++ 2019 Redistributable Package (36f68a90-239c-34df-b58c-64b30153ce35)
    [17:53:52.021] [ 15] [INFO ] Product Microsoft Visual C++ 2019 Redistributable Package (version 14.34.31938) is installed.
    [17:53:52.023] [ 15] [INFO ] Starting Sync Engine installation
    [17:53:52.454] [ 15] [ERROR] InstallSyncEnginePageViewModel: Error occurred while installing sync engine.
    Exception Data (Raw): System.ComponentModel.Win32Exception (0x80004005): Le fichier journal d’événements est endommagé
       à System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
       à System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
       à System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
       à Microsoft.Online.Deployment.Client.Framework.Tracer.TypeDependencies.EventLogWriteEntry(String eventSource, EventLogEntryType eventLogEntryType, Int32 eventId, String message)
       à Microsoft.Online.Deployment.Client.Framework.Tracer.TraceToEventLog(EventLogEntryType eventLogEntryType, Int32 eventId, Func`1 traceMessageProvider)
       à Microsoft.Online.Deployment.Client.Framework.Tracer.TraceError(Int32 eventId, String messageFormat, Object[] args)
       à Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SetupBase.ThrowSetupTaskFailureException(String exceptionFormatString, String taskName, Exception innerException)
       à Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SetupBase.Install()
       à Microsoft.Online.Deployment.OneADWizard.Runtime.Stages.InstallSyncEngineStage.ExecuteInstallCore(ISyncEngineInstallContext syncEngineInstallContext, ProgressChangedEventHandler progressChangesEventHandler)
       à Microsoft.Online.Deployment.OneADWizard.Runtime.Stages.InstallSyncEngineStage.ExecuteInstall(ISyncEngineInstallContext syncEngineInstallContext, ProgressChangedEventHandler progressChangesEventHandler)
       à Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.InstallSyncEnginePageViewModel.StartNewInstallation(Boolean skipSyncEngineInstall)
    [11:10:03.375] [  1] [VERB ] ReleaseSyncConfigurationMutex(): Releasing sync config changes mutex.
    [11:10:03.375] [  1] [INFO ] ================================================================================
    [11:10:03.375] [  1] [INFO ] Application exiting
    [11:10:03.375] [  1] [INFO ] ================================================================================
    [11:10:03.594] [  1] [INFO ] FileUploader: Setup and configuration logs will not be uploaded until the Health Agent is installed.
    [11:10:03.594] [  1] [INFO ] FileUploader: The Azure AD Health sync agent install path was not found in the registry.
    [11:10:03.594] [  1] [WARN ] UploadInstallationLogs: Log files cannot be uploaded because the Azure AD Health agent has not been installed yet.
    [11:10:03.625] [  1] [INFO ] UploadTelemetryData: starting telemetry data upload...
    [11:10:04.625] [  1] [INFO ] UploadTelemetryData: upload finished.  Success: True
    
    

    Thank you again.

    I will tell you if everything is ok.

    Have a nice day.

    Mika

    0 comments No comments

  4. Marilee Turscak-MSFT 36,866 Reputation points Microsoft Employee
    2024-09-18T23:23:36.1233333+00:00

    Hi @Mika_QDX ,

    I know this is an old thread but I ran into this same error today and was able to resolve it. Here are some steps that worked for me:

    1.) Even though I was working from a newly deployed Windows Server VM that should have had TLS 1.2 enabled by default, it was not enabled on my VM. I would recommend running PowerShell script to enable TLS 1.2: https://video2.skills-academy.com/en-us/entra/identity/hybrid/connect/reference-connect-tls-enforcement#powershell-script-to-enable-tls-12

    2.) After uninstalling AD Connect, when you run the reinstall, unselect the checkbox for "Start Synchronization." This will allow the service to install, and if you're running into issues with your synchronization, you can deal with those later. Then reboot the machine.

    3.) Enable the sync scheduler:

    Set-ADSyncScheduler -SyncCycleEnabled $true

    4.) Run a Delta sync:

    Start-ADSyncSyncCycle -PolicyType Delta

    I'm not sure if all of these steps were required for me, but the synchronization started working again after I did these things.


Your answer

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