Learn What IT Pros Need to Know About Windows 11 - August 24th at 1 PM ET! Learn What IT Pros Need to Know About Windows 11 - August 24th at 1 PM ET!
Cloud Computing

How to Install the Windows PowerShell Cmdlets for Windows Azure AD and Office 365

How can I install the Windows Azure Active Directory cmdlets for PowerShell?

For those who need to manage large Office 365 or Windows Azure AD deployments, the Azure and Office 365 management portals don’t offer enough flexibility to manage user accounts in bulk or provide automation capabilities. PowerShell can help administrators overcome these limitations. In this Ask the Admin, I’ll show you how to install the Windows Azure AD cmdlets for PowerShell, which can also be used to manage Office 365.

Install Microsoft Online Services Sign-in Assistant

The PowerShell cmdlets require that the Microsoft Online Services Sign-in assistant be installed on the same management machine, and be at least version 7.250.4551.0 or greater. The current Release to Web (RTW) version of the sign-in assistant is 7.250.4303.0, so you will need to install Microsoft Online Services Sign-In Assistant for IT Professionals BETA, which contains version 7.250.4551.0, before you will be able to authorize to Office 365 using PowerShell. If you are using a 64-bit version of Windows, download the 64-bit msi.

Install Windows Azure Active Directory Module for Windows PowerShell

Now download the 32-bit or 64-bit version of the Windows Azure Active Directory Module for Windows PowerShell, as appropriate for you management device. Once downloaded, run the AdministrationConfig-EN msi file.

  • Click Next in the installer dialog.
  • Check I accept the terms in the License Terms and click Next.
  • Click Next on the Install Location screen.
  • Click Install to start the process.
  • Give consent or enter administrative privileges if prompted.
  • Click Finish to complete the procedure.

Connect to Office 365 Using PowerShell

To connect to your Office 365 subscription, you need to enter your administrative credentials.

Sponsored Content

Read the Best Personal and Business Tech without Ads

Staying updated on what is happening in the technology sector is important to your career and your personal life but ads can make reading news, distracting. With Thurrott Premium, you can enjoy the best coverage in tech without the annoying ads.

  • Switch to the Start menu and type powershell.
  • Right-click Windows Azure Active Directory Module for Windows PowerShell in the search results and select Run as administrator. Give consent or enter administrative credentials if prompted.
  • In the command prompt window, type connect-msolservice and press Enter.
Connect to Office 365 using PowerShell
Connect to Office 365 using PowerShell.
  • Now enter your Office 365 administrator username and password in the pop-up dialog and click OK.

You should now be ready to go to run PowerShell cmdlets against your Office 365 subscription.

Related Topics:

BECOME A PETRI MEMBER:

Don't have a login but want to join the conversation? Sign up for a Petri Account

Register
Comments (3)

3 responses to “How to Install the Windows PowerShell Cmdlets for Windows Azure AD and Office 365”

  1. How to Export Office 365 Users to a CSV File

    […] Online Services Sign-In Assistant. For more information on installing these components, see "How to Install the Windows PowerShell Cmdlets for Windows Azure AD and Office 365" on Petri IT […]
  2. Bjorn Hogeman

    Does anyone got the download for me? When clicking on the 64bit link I got a file named AdministrationConfig-NL.msi and not the administrationconfig-en-x64.msi browser language or windows language don't mather. I always get the NL. So please post a link to an 64bit english version.
  3. Russell Smith

    Bjorn, you can also download the bits using the Web Platform Installer 5.0 http://www.microsoft.com/web/downloads/platform.aspx if the link in the article isn't redirecting you to the English language version of the .msi.

Leave a Reply

IT consultant, Contributing Editor @PetriFeed, and trainer @Pluralsight. All about Microsoft, Office 365, Azure, and Windows Server.

Register for Advanced Microsoft 365 Day!

GET-IT: Advanced Microsoft 365 1-Day Virtual Conference - Live August 24th!

Join us on Tuesday, August 24th and hear from Microsoft MVPs and industry experts about how to take advantage of Microsoft 365 at a technical level and dive deep into the features and functionality that will make your environment more secure and compliant.

RSVP Now

Sponsored By