Commands › SharePoint Online

Set-SPOHideDefaultThemes

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

Specifies whether the default themes should be available.

Quick start script

# Set-SPOHideDefaultThemes — 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-SPOHideDefaultThemes
$before | Format-List

# 3. Make the change
Set-SPOHideDefaultThemes -HideDefaultThemes <Boolean>

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

Syntax

Set-SPOHideDefaultThemes [-HideDefaultThemes] <Boolean> [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-HideDefaultThemes Boolean yes Determines whether to hide the default themes.

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