Commands › SharePoint Online

Get-SPORestrictedSiteCreation

SharePoint Online Microsoft.Online.SharePoint.PowerShell Get-*

This cmdlet allows SharePoint administrators to check the current configuration of the restricted site creation feature.

Quick start script

# Get-SPORestrictedSiteCreation — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Run and inspect
Get-SPORestrictedSiteCreation | Format-List

# 3. Export for evidence / drift tracking
Get-SPORestrictedSiteCreation | Export-Clixml .\SPORestrictedSiteCreation-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-SPORestrictedSiteCreation [-SiteType <RestrictedSiteCreationSiteType>] [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-SiteType RestrictedSiteCreationSiteType PARAMVALUE: All | SharePoint | OneDrive | Team | Communication - All - OneDrive and all SharePoint sites - SharePoint - All SharePoint sites (but not OneDrive) - OneDrive - Only OneDrive - Team - Only SharePoint team...

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.