Introduction to the SharePoint Online Management Shell

As a Microsoft 365 global or SharePoint admin for your organization, you can use the SharePoint Online Management Shell to manage users, sites, and site collections. The SharePoint Online Management Shell is a Windows PowerShell module that lets you run command-line operations. It makes performing batch operations more efficient, and is the only way to perform some management tasks in SharePoint and OneDrive.

Note: If you're new to Microsoft 365 or SharePoint Online, we recommend getting familiar with the SharePoint admin center first. To get started, see SharePoint Online planning guide.

Get started managing SharePoint Online using PowerShell cmdlets

  1. Download and install the latest SharePoint Online Management Shell. If you already have a previous version installed, uninstall it first and then install the latest version.

  2. Connect the SharePoint Online Management Shell to SharePoint Online for your organization. For info, see Connect the SharePoint Online PowerShell.

For a list of SharePoint Online PowerShell cmdlets you can run, see SharePoint Online PowerShell.

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.