Set-SPOWebTheme

Applies a theme with the specified components to the specified Site.

Set-SPOWebTheme -Identity <SPOWebPipeBind> -ColorPaletteUrl <String> [-FontSchemeUrl [<String>]] [-BackgroundImageUrl [<String>]] [-ShareGenerated [<Boolean>]]

Parameters

1

ParameterRequiredTypeDescription
IdentityTrueSPOWebPipeBind

Specifies the identity of the Site to apply the theme to.

The type must be a valid server relative URL, in the form /site_name, or an SPOWeb object, Microsoft.SharePoint.Client.Web object, or GUID representing the Site ID.

ColorPaletteUrlTrueString

The server relative URL to the color palette file. For example: "/_catalogs/theme/15/palette001.spcolor".

FontSchemeUrlFalseString

The server relative URL to the font file. For example: "/_catalogs/theme/15/fontscheme001.spfont".

BackgroundImageUrlFalseString

The server relative URL to the background image file. For example: "/Images/bg.png".

ShareGeneratedFalseBoolean

If specified, store the generated theme files in the root Site, otherwise store them in this Site.

Detailed Description

Applies a theme with the specified components to the specified Site.

Copyright 2016 Falchion Consulting, LLC

> For more information on this cmdlet and others:

> http://blog.falchionconsulting.com/

> Use of this cmdlet is at your own risk.

> Gary Lapointe assumes no liability.

Examples

------------------EXAMPLE------------------

PS C:\> Set-SPOWebTheme -Web "/" -ColorPaletteUrl "/_catalogs/theme/15/palette001.spcolor"

This example sets the theme of the root Site of the current Site Collection.