Search Results for

    Show / Hide Table of Contents

    Get-PnPWebTemplates

    SYNOPSIS

    Required Permissions

    • SharePoint: Access to the SharePoint Tenant Administration site

    Returns the available classic web templates

    SYNTAX

    Get-PnPWebTemplates [-Lcid <UInt32>] [-CompatibilityLevel <Int32>] [-Connection <PnPConnection>]
     
    

    DESCRIPTION

    Will list all available classic templates one can use to create a site. Modern templates will not be returned.

    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 compatibly level of SharePoint where 14 is SharePoint 2010, 15 is SharePoint 2013 and 16 is SharePoint 2016 and later including SharePoint Online

    Type: Int32
    Parameter Sets: (All)
    
    Required: False
    Position: Named
    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
    

    -Lcid

    The language ID. For instance: 1033 for English. For more information, see Locale IDs supported by SharePoint at https://github.com/pnp/PnP-PowerShell/wiki/Supported-LCIDs-by-SharePoint. To get the list of supported languages on a SharePoint environment use: Get-PnPAvailableLanguage.

    Type: UInt32
    Parameter Sets: (All)
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    RELATED LINKS

    Microsoft 365 Patterns and Practices Locale IDs

    Back to top Generated by DocFX spacer