web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

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

(1) ShareShare
ReportReport
Posted on by 32

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?

I have the same question (0)
  • Suggested answer
    saurabhtiwarii Profile Picture
    on at

    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

  • mrkavin Profile Picture
    20 on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans