Set-PnPProvisioningTemplateMetadata

Sets metadata of a provisioning template

Syntax

Set-PnPProvisioningTemplateMetadata
   -Path <String>
                                      [-TemplateDisplayName <String>]
                                      [-TemplateImagePreviewUrl <String>]
                                      [-TemplateProperties <Hashtable>]
                                      [-TemplateProviderExtensions <ITemplateProviderExtension[]>]
                                      [-Web <WebPipeBind>]
                                      [-Connection <PnPConnection>]

Examples

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

Set-PnPProvisioningTemplateMetadata -Path template.xml -TemplateDisplayName "DisplayNameValue"

Sets the DisplayName property of a site template in XML format.

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

Set-PnPProvisioningTemplateMetadata -Path template.pnp -TemplateDisplayName "DisplayNameValue"

Sets the DisplayName property of a site template in Office Open XML format.

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

Set-PnPProvisioningTemplateMetadata -Path template.xml -TemplateImagePreviewUrl "Full URL of the Image Preview"

Sets the Url to the preview image of a site template in XML format.

------------------EXAMPLE 4------------------

Set-PnPProvisioningTemplateMetadata -Path template.pnp -TemplateImagePreviewUrl "Full URL of the Image Preview"

Sets the to the preview image of a site template in Office Open XML format.

------------------EXAMPLE 5------------------

Set-PnPProvisioningTemplateMetadata -Path template.xml -TemplateProperties @{"Property1" = "Test Value 1"; "Property2"="Test Value 2"}

Sets the property 'Property1' to the value 'Test Value 1' of a site template in XML format.

------------------EXAMPLE 6------------------

Set-PnPProvisioningTemplateMetadata -Path template.pnp -TemplateProperties @{"Property1" = "Test Value 1"; "Property2"="Test Value 2"}

Sets the property 'Property1' to the value 'Test Value 1' of a site template in Office Open XML format.

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

Path to the xml or pnp file containing the site template.

Type:String
Position:0
Accept pipeline input:True
Accept wildcard characters:False
-TemplateDisplayName

It can be used to specify the DisplayName of the template file that will be updated.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-TemplateImagePreviewUrl

It can be used to specify the ImagePreviewUrl of the template file that will be updated.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-TemplateProperties

It can be used to specify custom Properties for the template file that will be updated.

Type:Hashtable
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-TemplateProviderExtensions

Allows you to specify ITemplateProviderExtension to execute while extracting a template.

Type:ITemplateProviderExtension[]
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Web

This parameter allows you to optionally apply the cmdlet action to a subweb within the current web. In most situations this parameter is not required and you can connect to the subweb using Connect-PnPOnline instead. Specify the GUID, server relative url (i.e. /sites/team1) or web instance of the web to apply the command to. Omit this parameter to use the current web.

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