Share via

Install of AD AD Connect Fails with Sync Service not found

PAG_1505 1 Reputation point
2022-05-18T13:54:43.74+00:00

Error from Log
[08:41:09.293] [ 1] [INFO ] ServiceControllerProvider: verifying ADSync is in state (Running)
[08:41:09.293] [ 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()
[08:41:16.735] [ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20220518-084105.log

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Kevin Zhi Wang Zhou 0 Reputation points
    2025-02-05T16:31:28.22+00:00

    Open control.exe -> Programs and uninstall all Azure AD / Entra Software.

    Reboot and install the newest AzureADSync.msi.

    Worked for me.

    0 comments No comments

  2. Limitless Technology 40,076 Reputation points
    2022-05-19T07:37:10.627+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having issues related to AADC sync service installation.

    It appears that an uninstall may leave some remnants. Using the corresponding package from my log, I had to trace the AADC Sync Service to the install site. I had to look for the package install location in the registry to find the installer. I removed the leftover pieces and the installation folder once I identified the install location (and the kicker was that there was only a single icon file that didn't uninstall and held up the entire thing being left in the registry, preventing the full removal and subsequent reinstall). I then deleted the registry entry for only this installation. Rebooted, and the AADC Installation completed successfully, followed by regular operation.

    Reference : https://social.msdn.microsoft.com/Forums/en-US/137a210f-ddd3-404e-90be-4a9dbcd02ce3/azure-active-directory-connect-service-adsync-was-not-found-on-computer-


    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  3. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,541 Reputation points Moderator
    2022-05-19T04:57:38.587+00:00

    Hello @PAG_1505 , this can be caused by an incomplete or corrupted AD Connect installation. Please try rebooting and:

    Repair the installation:

    • Run from command line:
      msiexec /fa <AzureADConnect.msi location>

    Or:

    Uninstalling:

    • Run from command line:
      msiexec /uninstall <AzureADConnect.msi location> /quiet /forcerestart
    • And re-installl

    Let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it so that others in the community with similar questions can more easily find a solution.


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.