User Tools

Site Tools


wiki:connect_to_microsoft_azuread_via_powershell

Connect to Microsoft Azure AD via powershell

This is for multifactor authentication.

1. Open Powershell as Admin.

2. Install module:

Install-Module MSOnline

3. Connect and check if it is successful

Connect-MsolService
Get-MsolUser

You should get a list of users and their emails.

4. Install the correct module. Usually this is

 Install-module AzureAD

However preview is requried for example this setup.

 Install-module AzureADPreview

5. Connect to Azure:

Connect-AzureAD

This should open a window to login.

Tested on

  • Windows 10 64-bit
  • Powershell 5.1.18362.628

See also

References

wiki/connect_to_microsoft_azuread_via_powershell.txt · Last modified: 2021/04/21 13:39 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki