I recently needed to use this and well; I’m learning as I go.
So one of the tasks I needed to do in O365 was to delete a user. This required me to use Azure AD PowerShell.
Fist step was simple. Install Windows Azure Active Directory Module for Windows PowerShell onto a system.
Next was to launch it.
Cool, I am in powershell! But what next, how do I connect.
To connect you enter the following cmdlet’s:
$msolcred = get-credential
which will prompt you for your credentials and stores them within $msolcred.
Next we enter
connect-msolservice -credential $msolcred
to connect using the stored credentials
For more info on Azure Powershell – http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/
How can I determine what version of AAD PowerShell I have?
You can run the get-item cmdlet to check the version of the DLL files of the module that you have currently installed:
Where can I find the latest version of AAD PowerShell?
The following fwlinks should always point to the most current version of AAD PowerShell
Azure Active Directory Module for Windows PowerShell (64-bit version) This link is external to TechNet Wiki. It will open in a new window.
Azure Active Directory Module for Windows PowerShell (32-bit version) This link is external to TechNet Wiki. It will open in a new window.