Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM 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

Say Goodbye to Traditional PC Lifecycle Management

Traditional IT tools, including Microsoft SCCM, Ghost Solution Suite, and KACE, often require considerable custom configurations by T3 technicians (an expensive and often elusive IT resource) to enable management of a hybrid onsite + remote workforce. In many cases, even with the best resources, organizations are finding that these on-premise tools simply cannot support remote endpoints consistently and reliably due to infrastructure limitations.

  • 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:

IT consultant, Contributing Editor @PetriFeed, and trainer @Pluralsight. All about Microsoft, Office 365, Azure, and Windows Server.
Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: