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 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.
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
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
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156