Manage Azure Active Directory using PowerShell

For managing Azure Active Directory you have two portals available:

You can also manage Azure Active Directory using PowerShell, very useful if you want to script your environment, use automation or do bulk management.

To manage Windows Azure Active Directory with PowerShell you have to install the Azure Active Directory Module for Windows PowerShell (64-bit version) but before you can use this you also have to install the Microsoft Online Services Sign-In Assistant (if not already installed).

Note. This is the Azure Active Directory PowerShell V1.

When you have these installed you’ll find an additional PowerShell module on your server or desktop. You can open this PowerShell module on your machine and connect to the Azure Active Directory using the following commands:

$Cred = Get-Credential &lt;your tenant administrator account&gt;<p>Connect-MsolService -Credential $Cred

This will log you on the Azure Active Directory.

To get an overview of all available Azure Active Directory commands you can use the following command:

Get-Command *MSOL*


Be aware that this is the same Azure Active Directory that’s used in your Office 365 environment, so when executing Get-MsolUser you’ll see an overview of all users that will be using Office 365:


And when looking at the Office 365 Portal you’ll see the same user accounts:


In my next blog I will discuss Azure Active Directory PowerShell v2, with its new features and advantages.

More information

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s