Forum Discussion
Han Valk
Jul 14, 2017Copper Contributor
Azure AD PowerShell v2 cmdlets not working, e.g. Get-AzureADPolicy
Sorry if I posted this twice, to me it seems that the first post did not succeed. Installed PowerShellGet using the MSI. Installed the Azure AD PowerShell v2 GA module using Install-Module AzureAD....
Udai
Copper Contributor
First uninstall using
UnInstall-Module AzureAD
then install the preview module
Install-Module AzureADPreview
Thom McKiernan
Feb 01, 2019Brass Contributor
This worked for me. I had a new Win10 laptop and installing the preview (v2.0.2.5) would work but Get-AzureADPolicy didn't.
I just had to run "UnInstall-Module AzureAD" in a fresh elevated PowerShell console and then the preview cmdlets worked perfectly