After connecting to Azure AD with Connect-AzureAD , If run the command Get-AzureADPolicy, PowerShell is prompting the message as "Get-AzureADPolicy : The term 'Get-AzureADPolicy' is not recognized"
This will work
Install-Module AzureADPreview
failed to install at first. Then I have installed AzureAD:
Install-Module AzureAD
The Get-AzureADPolicy was still missing, so I tried to install AzureADPreview again (without removing AzureAD).
Install-Module AzureADPreview
This time it proceeded where it has failed previously. Adding the -AllowClobber argument fixed the installation problem.
Install-Module AzureADPreview -AllowClobber
Restarted Powershell and Get-AzureADPolicy worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With