Connecting to SPO

May 21, 2017 | by iaur | posted as Connect to M365 Services, PowerShell

Install the SharePoint Online Management Shell by downloading and running the SharePoint Online Management Shell

Connect-SPOService -Url https://”ORGNAME”-admin.sharepoint.com -Credential $userCredential

Example:

Connect-SPOService -Url https://faceresionem-admin.sharepoint.com -Credential $userCredential

From <https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/connect-sharepoint-online?view=sharepoint-ps>