Microsoft.Online.SharePoint.PowerShell module: setup and commands
Documentation: Microsoft Learn
Connect to the SharePoint Online admin service, inventory sites with Get-SPOSite and verify tenant permissions before changing site settings.
Getting it
Install-PSResource -Name Microsoft.Online.SharePoint.PowerShell from the PowerShell Gallery, then connect with Connect-SPOService -Url https://<tenant>-admin.sharepoint.com.
Examples
Show reference output
Show reference output
What it is for
Use it for site inventory, storage reporting, and tenant sharing policy checks. It is also where a site quota or sharing capability gets changed across many sites at once.
Typical tasks
- Inventory site collections with storage used
- Find sites with external sharing enabled
- Report site owners and administrators
- List external users across the tenant
- Adjust the storage quota on a site
- Identify sites with no recent activity
Check the installed version
Compare the module path and version with the session used by your scheduled task or automation account. Use it for site inventory, storage reporting, and tenant sharing policy checks. It is also where a site quota or sharing capability gets changed across many sites at once.