"Specified module 'DirSync' was not loaded" error message when you try to import the module for the Azure Active Directory Sync tool

S’applique à : Office 365 Identity ManagementAzure Active DirectoryCloud Services (Web roles/Worker roles)

PROBLEM


When you try to use the Import-Module cmdlet to import the module for the Microsoft Azure Active Directory Sync tool, you receive the following error message:
Import-Module: The specified module 'DirSync' was not loaded because no valid module file was found in any module directory.

CAUSE


You don't have the version of the Azure Active Directory Sync tool installed that supports the Import-Module cmdlet.

SOLUTION


Install the latest version of the Azure Active Directory Sync tool. To obtain the latest version, see the following Microsoft TechNet topic:

MORE INFORMATION


Still need help? Go to Microsoft Community or the Azure Active Directory Forums website.