SharePoint Online scripting

To be able to connect to your tenant, you will use the Connect-SPOService command. The command takes the URL of the admin site of your tenant and the credentials for the session. The admin URL is usually of the yourdomain-admin.sharepoint.com form, but you can get the actual URL by going to the site through the Office 365 admin center:

The prompt is displayed when connecting to SharePoint Online. Not all the APIs support it, but SharePoint Online will prompt for credentials, allowing you to go through the MFS workflow if needed.

If you run the command without parameters, the credential prompt will be used.

It is ...

Get PowerShell for Office 365 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.