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.
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.
To begin using the Office 365 cmdlets, you first need to install them. The requirements for installing the Office 365 cmdlets are as follows:
- You can install the cmdlets on a Windows 7 or Windows Server 2008 R2 computer.
- You must have Windows PowerShell and the .NET Framework 3.5.1 enabled.
- You must install the Microsoft Online Services Sign-in Assistant. Download and install one of the following from the Microsoft Download Center:
To install the cmdlets, perform the following steps:
- Download one of the following from the Microsoft Download Center:
- 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.
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:
- View the Help file for a cmdlet by typing the following at the command prompt: