The specified module ‘adsync’ was not loaded because no valid module file was found in any module directory


When trying to Import-Module Adsync it is failing with below error

It not shown in the available modules as well, when we run Get-Module


Use the below command to get the AzureADSync Module imported manually from the AADConnect Installed Path Location

Import-Module –Name “C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync” -Verbose

Now do validate the Cmdlets of Azure ADSync and you could see it gets resolved without any issues.

1 Comment

  • J J Bailey says:


    This was useful when I had to upgrade from the old AD Sync versions on one server to a new server, I had numerous failing scripts to re-edit, this little tip saved me some time.

    many thanks

Leave a Reply

Your email address will not be published.