SharePoint Online PowerShell Flags & Options
The SharePoint Online Management Shell: sites, sharing and tenant settings.All SharePoint Online PowerShell pages
- Get-SPOSite -IncludePersonalSite $true: include OneDrive sites in the listGet-SPOSite -IncludePersonalSite $true adds OneDrive sites, which are excluded by default. It is a Boolean, not a switch; how to list only OneDrive URLs.
- Get-SPOSite -Limit All: list every site, not just the first 200Get-SPOSite returns 200 site collections by default; -Limit All returns every site. The parameter is a string; filters, templates and missing properties.
- Set-SPOSite -DenyAddAndCustomizePages 0: allow custom scripts on a SharePoint siteSet-SPOSite -DenyAddAndCustomizePages 0 allows custom script on a SharePoint site for at most 24 hours; 1 blocks it again. Accepted values tested offline.
- Set-SPOSite -StorageQuota: set a site storage limit in MB (with a warning level)Set-SPOSite -StorageQuota and -StorageQuotaWarningLevel take megabytes, not GB. Convert with 50GB/1MB; manual vs pooled storage and -StorageQuotaReset.