How to connect PowerShell to Azure AD


  1. Have access to Office 365 as Administrator. Don’t already have access? Get free try for one month at
  2. Install Microsoft Online Services Sign-In Assistant for IT Professional BETA
  3. Install Azure Active Directory Module for Windows PowerShell (64-bit) 32-bit has been discontinued as of October 20, 2014 (


  1. Launch Windows PowerShell or Windows PowerShell ISE
  2. Execute cmdlet Import-Module MSOnline
  3. Execute cmdlet Connect-MsolService

Congrats, you now have access to all PowerShell commands to manage Azure Active Directory in Office 365.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s