Install Azure Active Directory Module for Windows PowerShell

Open an elevated PowerShell session, if you don’t already have one open.

In that session enter the following command:

Install-Module AzureAD

If you are prompted to install the NuGet provider, answer Yes.

If you receive a warning about “PSGallery” being an untrusted repository, answer Yes to the “Are you sure…” prompt.

Note

You can avoid this warning in the future by executing this cmdlet:

Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

Installing Azure Active Directory Module for Windows PowerShell

MS-image017