Get-PnPWebTemplates

Returns the available web templates.

Syntax

Get-PnPWebTemplates
   [-Lcid <UInt32>]
                      [-CompatibilityLevel <Int>]
                      [-Connection <SPOnlineConnection>]

Description

Will list all available templates one can use to create a classic site.

Examples

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

Get-PnPWebTemplates

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

Get-PnPWebTemplates -LCID 1033

Returns all webtemplates for the Locale with ID 1033 (English)

------------------EXAMPLE 3------------------

Get-PnPWebTemplates -CompatibilityLevel 15

Returns all webtemplates for the compatibility level 15

Parameters

-CompatibilityLevel

The version of SharePoint

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

The language ID. For instance: 1033 for English

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

Outputs

Microsoft.Online.SharePoint.TenantAdministration.SPOTenantWebTemplateCollection