(Cloud) Tip of the Day: Import module for Azure AD DirSync PowerShell

Today’s Tip…

With the latest version of Azure Active Directory Synchronization tool (6862.0000), you can now import the PowerShell module for Directory Synchronization.

To do this, on the server where Azure Active Directory Synchronization tool is installed, run the following command to import the Directory Synchronization PowerShell cmdlets…

Import-Module DirSync

This is a lot better experience than manually going to and opening the PowerShell module file (DirSyncConfigShell.psc1)

Comments (3)

  1. Roy Apalnes says:

    Same error, because the cmdlet isn’t named DirSync anymore, but ADSync.

    Command: Import-Module ADSync

  2. Ulrik says:

    I get same error as Gary.

  3. Gary says:

    Brilliant. Even when I run the command in the "Windows Azure Active Directory Sync" directory, here’s what I get:

    PS C:Program FilesWindows Azure Active Directory Sync> Import-Module DirSync
    Import-Module : The specified module ‘DirSync’ was not loaded because no valid module file was found in any module dire
    At line:1 char:14
    + Import-Module <<<< DirSync
    + CategoryInfo : ResourceUnavailable: (DirSync:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Skip to main content