Set up the SharePoint Online Management Shell environment

SharePoint Online global administrators use the SharePoint Online Management Shell to remotely manage site collections, upgrade site collections to a new version, configure SharePoint Online company-level settings, and get logs from data connections between SharePoint Online and other services through Business Connectivity Services.

To set up the SharePoint Online Management Shell environment, follow these steps:

  1. Install Windows Management Framework 3.0.

  2. Install SharePoint Online Management Shell.

  3. From the Start button, choose All Programs, and then select SharePoint Online Management Shell.

  4. Run Connect-SPOService. For example, type this command at the prompt:
    Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential admin@contoso.com, where

    • URL is the URL of the SharePoint Online Administration Center

    • Credential is the user name to which you want to grant access to the SharePoint Online Administration Center site.

  5. Try it out! Run Get-SPOSite to get a list of all the sites.

Top of Page

Applies To: SharePoint Online



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language