Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

How to start start the Azure Active Directory Module for Windows PowerShell

Posted on by 30

Hi all,

I'm trying to connect my CRM on-premise with Exchange Online following this link https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/deploy/connect-dynamics-365-on-premises-exchange-online. At step 1 in Configure server-based authentication, it asks me to start Azure Active Directory Module for Windows PowerShell. How can I check if it started or not? If not, how can I start it?

  • mrkavin Profile Picture
    mrkavin 20 on at
    RE: How to start start the Azure Active Directory Module for Windows PowerShell

    I am having also this issue. How do I use a PowerShell script built using the Windows Active Directory module as an Active Roles Server Script Module? I am trying this I am getting an error that "GEt-ADGroupMember" is not recognized. I think this is because it does not recognize the cmdlet without the ActiveDirectory module.

  • Suggested answer
    RE: How to start start the Azure Active Directory Module for Windows PowerShell

    Hello Chinh,

    Thanks for reaching Dynamics community. For starting the Azure Active Directory Module for Windows PowerShell, you will have to basically install these PowerShell modules and force import them using PS on the local server as ::

    Please note that the commands would require PS module version 5, which can be checked using the command ::

     $psversiontable.psversion

    pastedimage1585722144541v1.png

    If it is not, you can download Windows Management Framework 5.1, which includes Windows PowerShell 5.1, from the Microsoft Download Center.

    https://www.microsoft.com/en-us/download/details.aspx?id=54616


    pastedimage1585722600882v2.png


    Post the above action, you may comfortably proceed to start the Azure Active Directory Module for Windows PowerShell and PowerShell module for Microsoft Dynamics as ::

    Enable-PSRemoting -force
    New-PSSession


    Install-Module MSOnline  (
    https://docs.microsoft.com/en-us/powershell/azure/active-directory/install-msonlinev1?view=azureadps-1.0#install-the-azure-ad-module)


    Install-Module MSOnlineExt
    Import-Module MSOnline -force
    Import-Module MSOnlineExt -force

    Please mark my comment as answered if this helps.   

    Thanks,

    Saurabh

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans