Q
Manage Learn to apply best practices and optimize your operations.

Is there an advantage to using SharePoint Online PowerShell cmdlets?

Administrators can use SharePoint Online PowerShell cmdlets to ease their workload and reduce mistakes from manual intervention.

While administrators can manage SharePoint Online through the SharePoint Online Administration Center, they also...

have the option to perform various tasks through the SharePoint Online Management Shell. This shell is a Windows PowerShell module that administrators can use to manage SharePoint Online users, sites, site collections and organizations.

The principal advantage to using a PowerShell cmdlet is the ability to automate actions using scripts. First, using SharePoint Online PowerShell scripts helps administrators to perform bulk actions. For SharePoint Online, this might include creating hundreds of new SharePoint users -- far too time-consuming to perform individually through the Admin Center. Second, PowerShell scripting brings consistency and reduces errors. For example, a PowerShell script might be the ideal resource for creating new SharePoint Online sites to give a predictable result every time.

Only SharePoint Online global administrators can use the Management Shell, which also requires Windows PowerShell 3.0 or later along with the SharePoint Online Management Shell plug-in from the Microsoft Download Center. Once the services are installed and connected, administrators can create SharePoint Online PowerShell scripts.

SharePoint Online cmdlets follow familiar verb-noun pairings such as Add-SPOUser, Get-SPOUser or Remove-SPOUser to add, see or remove a SharePoint Online user. Similarly, a PowerShell cmdlet such as New-SPOSiteGroup, Get-SPOSiteGroup and Remove-SPOSiteGroup can be used to add, see or remove SharePoint Online groups. In addition to managing users, groups, site collections and organization-level activities, SharePoint Online cmdlets can also be employed to handle service upgrades, service connections and disconnections, and OneDrive synchronizations.

 

Next Steps

PowerShell makes SharePoint backups less painful

Scripting advice for Windows PowerShell

Managing remote servers with PowerShell

This was last published in January 2016

PRO+

Content

Find more PRO+ content and other member only offers, here.

Essential Guide

The essential admin's guide to Office 365 PowerShell

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Join the conversation

1 comment

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

How important to your organization is PowerShell functionality in SharePoint Online?
Cancel

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchEnterpriseDesktop

SearchVirtualDesktop

Close