PowerShell allows one to perform bulk operations in a short period of time. It is much faster than doing the same operations over a GUI. In SharePoint Online if one needs to manage Site Collections, they would need to log into the SharePoint Online Admin Center. If one has to use Power Shell in SharePoint Online, they would need to download the SharePoint Online Management Shell. Here are the steps on how to connect to SharePoint Online and perform operations using Power Shell.
- Download the SharePoint Online Management Shell
- On the Start Menu, type sharepoint.
- Click on the App, SharePoint Online Management Shell
- Then enter the following commands.
$adminUPN="<the full email address of a SharePoint Online global administrator account, example: firstname.lastname@example.org>" $orgName="<name of your Office 365 organization, example: contosotoycompany>" $userCredential = Get-Credential -UserName $adminUPN -Message "Type the password." Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential