Are you an Office 365 IT administrator who is new to PowerShell? Are you looking for an Office 365 admin tool to automate repetitive administrative tasks? Or perhaps you are looking to access additional capabilities that aren't available in the Office 365 Admin Center? Then PowerShell for Office 365 is for you.

Get Started

What is PowerShell and why?

PowerShell (also known as Windows PowerShell) is a command-line environment that's designed specifically for system administration. PowerShell helps IT professionals and power users control and automate the administration of the Windows operating system and applications, such as Office 365.

The most basic part of PowerShell is called a cmdlet (pronounced command-let). Cmdlets allow you to do things in the Office 365 PowerShell environment like adding users to your Office 365 organization, managing Office 365 license assignments and know which mailboxes are inactive.

You can string multiple cmdlets together in a text file to create a PowerShell script.

PowerShell is complementary to the Office 365 admin center.

The Office 365 admin center is the out-of-box solution that spans the entire administration lifecycle from setup to support. The Office 365 admin center is designed to handle the most common administration tasks such as adding and editing users and setting common service settings. However, there may be situations such as:

  • Adding or editing a large number of users
  • Using multiple filters to sort through data
  • Exporting data such as user lists and groups
  • Configuring less commonly used settings

In these situations, it will generally save you significant time and effort to use PowerShell.

Learn more

Scenarios for PowerShell usage

See all scenarios

Top Script Samples

Getting Connected to Office 365 Cloud services to administer Office 365 Cloud services using PowerShell

Downloaded 2550 times.  (2)

Connect remotely to your SharePoint Online service.

Downloaded 715 times.  (2)

Assign a license to a user, using the Set-MsolUserLicense command, and review available licenses.

Downloaded 0 times.  (9)

This command will set a policy that requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher. 

Downloaded 0 times.  (0)