As an administrator, you can use Windows PowerShell cmdlets to accomplish many Microsoft Office 365 administrative tasks such as user management and domain management. This topic includes information about Windows PowerShell and how to install the cmdlets for Office 365.

You can also manage Microsoft Exchange Online with Windows PowerShell cmdlets. For more information, see Use Windows PowerShell in Exchange Online.

About Windows PowerShell

Windows PowerShell is a task-based command-line shell and scripting language designed for system administration. Unlike most shells, which accept and return text, Windows PowerShell is built on top of the Microsoft .NET Framework common language runtime (CLR) and the .NET Framework, and accepts and returns .NET Framework objects. Windows PowerShell introduces the concept of a cmdlet (pronounced “command-let”), a simple, single-function command-line tool built into the shell. Cmdlets have the following naming convention: a verb and noun separated by a dash (-), such as Get-Help, Get-Process, and Start-Service. Windows PowerShell includes more than one hundred basic core cmdlets. For more information about Windows PowerShell, see the Windows PowerShell Getting Started Guide.

There are many Office 365 cmdlets you can use to perform a variety of administrative tasks. For more information about the various tasks you can perform using cmdlets, see Windows PowerShell cmdlets for Office 365.

Install the Office 365 cmdlets

To begin using the Office 365 cmdlets, you first need to install them. The requirements for installing the Office 365 cmdlets are as follows:

To install the cmdlets, perform the following steps:

  1. Download one of the following from the Microsoft Download Center:
  2. To install the cmdlets, double-click the AdministrationConfig.msi file.The installer adds the program to your Start menu and a shortcut to your desktop.
Connect Windows PowerShell to the service

Click the Microsoft Online Services Module shortcut to open a Windows PowerShell workspace that has the cmdlets. Alternatively, you can load the Office 365 cmdlets manually by typing import-module MSOnline at the Windows PowerShell command prompt.

For more information about cmdlets, you can do the following:

  • Get a list of cmdlets by typing the following at the command prompt: get-module MSOnline
  • View the Help file for a cmdlet by typing the following at the command prompt: get-help -detailed