Set-PnPHideDefaultThemes

Defines if the default / OOTB themes should be visible to users or not.

Syntax

Set-PnPHideDefaultThemes
   -HideDefaultThemes <Boolean>
                           [-Connection <SPOnlineConnection>]

Description

Use this cmdlet to hide or show the default themes to users

You must be a SharePoint Online global administrator to run the cmdlet.

Examples

------------------EXAMPLE 1------------------

Set-PnPHideDefaultThemes -HideDefaultThemes $true

This example hides the default themes

------------------EXAMPLE 2------------------

Set-PnPHideDefaultThemes -HideDefaultThemes $false

This example shows the default themes

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:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-HideDefaultThemes

Defines if the default themes should be visible or hidden

Type:Boolean
Position:Named
Accept pipeline input:False
Accept wildcard characters:False