Set-SPOWebTheme
Sets the theme for a SharePoint site.
Syntax
Default (Default)
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
Applicable: SharePoint Online
Prompts you for confirmation before executing the command.
For more information, type the following command: get-help about_commonparameters
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Theme
Applicable: SharePoint Online
Name of the theme or SPOTheme object
Parameter properties
Type: | Microsoft.Online.SharePoint.PowerShell.SpoThemePipeBind |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | Identity, Name |
Parameter sets
(All)
Position: | 0 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Web
Applicable: SharePoint Online Url of the site
Parameter properties
Type: | Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.