Commands › SharePoint Online
Add-SPOTheme
Creates a new custom theme, or overwrites an existing theme to modify its settings.
Quick start script
# Add-SPOTheme — 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
Add-SPOTheme -Identity <SpoThemePipeBind> | Format-List
# 3. Export for evidence / drift tracking
Add-SPOTheme | Export-Clixml .\SPOTheme-$(Get-Date -Format yyyyMMdd).xml
Syntax — 2 parameter sets
NewThemeSet
Add-SPOTheme
[-Identity] <SpoThemePipeBind>
-ColorPairs <SpoThemeColorPairPipeBind>
[-Overwrite]
[<CommonParameters>]
LegacyThemeSet
Add-SPOTheme
[-Identity] <SpoThemePipeBind>
-Palette <SpoThemePalettePipeBind>
-IsInverted <Boolean>
[-Overwrite]
[<CommonParameters>]
Parameters (5)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.