Share via

unable to install the synchronization service. Localdb powershell operation failed on ADSync Bootstrap service. Enable-ADSyncBootStrapLocalDBInstance.

Germain, Frédéric 0 Reputation points
2024-08-30T15:55:51.2933333+00:00

Hi,

i got issue with the installation of ADSync.

I got a issue of unable to install the synchronization service. Localdb powershell operation failed on ADSync Bootstrap service. Enable-ADSyncBootStrapLocalDBInstance.

For some reasons, the connection of all services of the adSync on others server are stop too.

I have reinstall multiple time and i am stick with this error

User's image

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Microsoft Security | Microsoft Entra | Microsoft Entra ID

Answer recommended by moderator

  1. George Mitii 90 Reputation points
    2025-03-03T08:57:40.51+00:00

    1. Manually Remove Any Corrupt LocalDB Files

    A. Stop Any Running SQL Services

    Run the following command in PowerShell (Admin):

    Stop-Service "MSSQL$MICROSOFT##SSEE" -Force -ErrorAction SilentlyContinue

    Stop-Service "MSSQL$SQLEXPRESS" -Force -ErrorAction SilentlyContinue

    Stop-Service "MSSQL$MSSQLSERVER" -Force -ErrorAction SilentlyContinue

    Then, check for running instances:

    Get-Service | Where-Object {$_.DisplayName -like "SQL" }

    If you see any running SQL Server-related services, manually stop them from Task Manager > Services.


    B. Delete SQL LocalDB Files Manually

    1. Open File Explorer and go to:

    2.  C:\Users\dcadmin\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\

    1. Delete the entire MSSQLLocalDB folder.
    2. Navigate to:

    5.  C:\Program Files\Microsoft SQL Server\

    and delete any folders related to LocalDB.


    2. Remove LocalDB from Registry

    Since LocalDB is not functioning properly, we need to clean the registry:

    1. Open Registry Editor (regedit.exe).
    2. Navigate to:

    3.  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server Local DB\Instances\

    1. Delete the MSSQLLocalDB key.
    2. Navigate to:

    6.  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\

    and delete any references to LocalDB.


    3. Reinstall LocalDB

    A. Uninstall LocalDB Completely

    1. Open Control Panel > Programs & Features.
    2. Uninstall:
      • Microsoft SQL Server LocalDB
        • Microsoft SQL Server 2019 Express LocalDB (or any other version)
          • Microsoft SQL Server Compact Edition (if installed)

    B. Download and Reinstall LocalDB

    1. Go to Microsoft's website: Download SQL Server Express LocalDB
    2. Download the SQL Server Express LocalDB installer.
    3. Install it using the default settings.

    4. Recreate and Start LocalDB

    After reinstalling, run:

    sqllocaldb create MSSQLLocalDB

    sqllocaldb start MSSQLLocalDB

    sqllocaldb info

    You should now see the instance properly created and running.


    5. Retry Installing Entra Connect

    Once LocalDB is working, retry installing Microsoft Entra Connect.



    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Sina Salam 28,606 Reputation points Volunteer Moderator
    2024-08-30T19:20:11.2133333+00:00

    Hello Germain, Frédéric,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are having issues with your installation of Microsoft Azure Active Directory Connect, unable to complete the installation of the synchronization service.

    Regarding the information you provided, the contents of the log file specified in the error statement is most needed and this is a similar question on Microsoft Q&A. However, to resolve the ADSync installation issue start with the steps below:

    Cat1:

    1. Review the Application and System event logs for detailed error messages related to the ADSync installation
    2. Fix Azure AD Connect Sync Service not running. https://www.alitajran.com/azure-ad-connect-sync-service-not-running

    Cat2:

    1. If above not resolve: Remove Corrupt Installation https://support.microsoft.com/en-us/topic/fix-problems-that-block-programs-from-being-installed-or-removed-3c0e7a13-9077-4a6e-8baa-8aa1c2b5b2cb
    2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products by delete it, you'll clean up the Registry. https://learn.microsoft.com/en-us/answers/questions/1317206/unable-to-install-the-synchronization-service-when
    3. After the above 1 & 2 steps, download the latest version of Azure AD Connect from the official Microsoft site https://www.microsoft.com/en-us/download/details.aspx?id=47594 and run the installer.

    Everything you be fine. Try to check your Application Service Status.

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam

    0 comments No comments

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.