Set-PnPWebTheme
SYNOPSIS
Sets the theme of the current web.
SYNTAX
Set-PnPWebTheme [[-Theme] <ThemePipeBind>] [-WebUrl <String>]
[-Connection <PnPConnection>]
DESCRIPTION
Sets the theme of the current web. * Requires SharePoint Online Administrator Rights *
EXAMPLES
EXAMPLE 1
Set-PnPWebTheme -Theme MyTheme
Sets the theme named "MyTheme" to the current web.
EXAMPLE 2
Get-PnPTenantTheme -Name "MyTheme" | Set-PnPWebTheme
Sets the theme named "MyTheme" to the current web.
EXAMPLE 3
Set-PnPWebTheme -Theme "MyCompanyTheme" -WebUrl https://contoso.sharepoint.com/sites/MyWeb
Sets the theme named "MyCompanyTheme" to MyWeb.
PARAMETERS
-Connection
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Theme
The name or ID of the theme that should be applied to the SharePoint site.
Type: ThemePipeBind
Parameter Sets: (All)
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-WebUrl
The URL of the web to apply the theme to. If not specified it will default to the current web based upon the URL specified with Connect-PnPOnline.
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False