Set-SPOWebTheme

Sets the theme for a SharePoint site.

Syntax

Set-SPOWebTheme
   [-Theme] <SpoThemePipeBind>
   [-Web] <SpoSitePipeBind>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Use this cmdlet to set the custom theme for a Site

Examples

Example 1

Set-SPOWebTheme -Theme "Custom cyan" -Web https://contoso.sharepoint.com/sites/Contoso1

This example sets the "Custom Cyan" theme to the https://contoso.sharepoint.com/sites/Contoso1 site.

Parameters

-Confirm

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-Theme

Name of the theme or SPOTheme object

Type:SpoThemePipeBind
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Online

-Web

Url of the site

Type:SpoSitePipeBind
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-WhatIf

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online