Cannot install Azure AD Connect

Hlrzr 1 Reputation point
2022-06-06T20:12:21.173+00:00

We were attempting to upgrade from AAD Connect 1.4 to the newest version. This domain controller was our staging server. We have since created a separate staging server to help ensure our DR posture remains intact.

After numerous attempts at upgrading to the newest version of AADConnect, we attempted to go to build 1.6.16. We're met with the same error message:

Error 25004. The dll file c:\program files\microsoft azure ad sync\bin\configdb.dll could not be loaded. Try running this wizard again. the specified module could not be found.

The file does exist and is not restricted. We tried uninstalling all AD Connect software including the SQL component, renamed directories, and reinstalled. We also attempting to install the product with an enterprise admin account vs. domain admin, same issue arrises. Any tips would be appreciated else we install the client on other servers.

208806-screen1.png208863-screen2.png208864-screen3.png

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Marilee Turscak-MSFT 37,206 Reputation points Microsoft Employee Moderator
    2022-06-07T00:02:20.517+00:00

    Hi @Hlrzr ,

    I understand that you are having trouble upgrading to the latest version of Azure AD Connect and are receiving the following error:

    Error 25004. The dll file c:\program files\microsoft azure ad sync\bin\configdb.dll could not be loaded. Try running this wizard again. the specified module could not be found.

    Since you are also seeing the 1603 error, I would recommend following the steps in the Azure AD Connect Upgrade Fails article. It looks like this issue can sometimes occur if the underlying service account was configured by using the user principal name (UPN) instead of Domain\SamAccountName.

    If this is the case, you can resolve this issue by following these steps:

    1) Start the Service Console on the Azure AD Connect server.
    2) Locate the Microsoft Azure AD Sync service, and then right-click the service.
    3) Select Properties, and then select Logons.
    4) Set the account by using Domain\SamAccountName instead of using the UPN.
    5) Select Apply and OK.

    If you have already tried this and did not have success, another common issue that causes this problem is when remnants of the previous installation of Azure AD Connect are remaining and need to be removed. While it is technically possible to resolve this issue by editing the registry as described here, doing so is risky and not officially advised.

    So if the regular troubleshooting steps did not help, I would recommend creating a support case.

    -
    If the answer provided was helpful to you, please remember to "mark as answer" so that others in the community with similar issues can more easily find a solution.

    1 person found this answer helpful.

  2. Jonathan Bouchier 1 Reputation point
    2022-06-27T21:51:26.943+00:00

    I had the same issue on some servers and the issue was my anti-virus blocking the installation of the sync service. I disabled my AV and was able to install AAD Connect. It odd since the blocking by the AV did not produce a notification or an event in the logs.

    After the installation and configuration was complete, I re-enabled the anti-virus. Going to look into what whitelisting needs to be done.

    0 comments No comments

  3. Lutz 1 Reputation point
    2022-10-05T21:11:51.657+00:00

    I had the same issue and it was also the AV software (on of these newer AI based ones).

    0 comments No comments

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.