Get-PnPTenantTheme
SYNOPSIS
Required Permissions
- SharePoint: Access to the SharePoint Tenant Administration site
Returns all or a specific theme
SYNTAX
Get-PnPTenantTheme [[-Name] <String>] [-AsJson] [-Connection <PnPConnection>]
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.
EXAMPLE 3
Get-PnPTenantTheme -Name "MyCompanyTheme" -AsJson
Returns the specified theme as json.
PARAMETERS
-AsJson
The theme is returned in json format.
Type: SwitchParameter
Parameter Sets: (All)
Required: False
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
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name
The name of the theme to retrieve.
Type: String
Parameter Sets: (All)
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False