Table of contents
TOC
Collapse the table of content
Expand the table of content

Set-PnPProvisioningTemplateMetadata

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Sets metadata of a provisioning template

Syntax

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

Parameters

ParameterTypeRequiredDescription
PathStringTruePath to the xml or pnp file containing the provisioning template.
TemplateDisplayNameStringFalseIt can be used to specify the DisplayName of the template file that will be updated.
TemplateImagePreviewUrlStringFalseIt can be used to specify the ImagePreviewUrl of the template file that will be updated.
TemplatePropertiesHashtableFalseIt can be used to specify custom Properties for the template file that will be updated.
TemplateProviderExtensionsITemplateProviderExtension[]FalseAllows you to specify ITemplateProviderExtension to execute while extracting a template.
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> Set-PnPProvisioningTemplateMetadata -Path template.xml -TemplateDisplayName "DisplayNameValue"

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

Example 2

PS:> Set-PnPProvisioningTemplateMetadata -Path template.pnp -TemplateDisplayName "DisplayNameValue"

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

Example 3

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

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

Example 4

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

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

Example 5

PS:> 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 provisioning template in XML format.

Example 6

PS:> 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 provisioning template in Office Open XML format.

© 2017 Microsoft