Commands › SharePoint Online

Set-SPOBuiltInSiteTemplateSettings

SharePoint Online Microsoft.Online.SharePoint.PowerShell Set-*

Sets all or specific Microsoft-provided SharePoint site templates to be displayed or hidden in the site template gallery in your tenant. All site templates are displayed by default.

Quick start script

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

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SPOBuiltInSiteTemplateSettings
$before | Format-List

# 3. Make the change
Set-SPOBuiltInSiteTemplateSettings -Identity <SPOBuiltInSiteTemplateSettingsPipeBind>

# 4. Verify and diff
$after = Get-SPOBuiltInSiteTemplateSettings
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-SPOBuiltInSiteTemplateSettings [-Identity] <SPOBuiltInSiteTemplateSettingsPipeBind> [-IsHidden <Boolean>]
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Identity SPOBuiltInSiteTemplateSettingsPipeBind yes Specifies the ID for the site template you wish to change.
-IsHidden Boolean Specifies whether the site template is hidden ($true) or displayed ($false). All site templates are displayed by default.

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