Categories
How-To Software Technical

Azure Active Directory Module for Windows Powershell – How to Connect

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

That’s it.

For more info on Azure Powershell – http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/

Related FAQs:

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:

(get-item C:\Windows\System32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll).VersionInfo.FileVersion

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.

2 replies on “Azure Active Directory Module for Windows Powershell – How to Connect”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.