Get-PnPTenantTheme

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Get-PnPTenantTheme.md to change this file.

Required Permissions

  • SharePoint: Access to the SharePoint Tenant Administration site

Returns all or a specific theme

Syntax

Get-PnPTenantTheme
   [[-Name] <String>]
   [-AsJson]
   [-Connection <PnPConnection>]
   [<CommonParameters>]

Description

Returns all or a specific tenant theme.

Examples

EXAMPLE 1

Get-PnPTenantTheme

Returns all themes

EXAMPLE 2

Get-PnPTenantTheme -Name "MyCompanyTheme"

Returns the specified theme

Parameters

-AsJson

{{ Fill AsJson Description }}

Type:SwitchParameter
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

The name of the theme to retrieve

Type:String
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False