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

Convert-PnPProvisioningTemplate

Bert Jansen|Last Updated: 2/16/2017

Converts a provisioning template to an other schema version

Syntax

Convert-PnPProvisioningTemplate -Path <String>
                                [-Out <String>]
                                [-Encoding <Encoding>]
                                [-Force [<SwitchParameter>]]
                                [-ToSchema <XMLPnPSchemaVersion>]

Parameters

ParameterTypeRequiredDescription
PathStringTruePath to the xml file containing the provisioning template
EncodingEncodingFalseThe encoding type of the XML file, Unicode is default
ForceSwitchParameterFalseOverwrites the output file if it exists
OutStringFalseFilename to write to, optionally including full path
ToSchemaXMLPnPSchemaVersionFalseThe schema of the output to use, defaults to the latest schema

Examples

Example 1

PS:> Convert-PnPProvisioningTemplate -Path template.xml

Converts a provisioning template to the latest schema and outputs the result to current console.

Example 2

PS:> Convert-PnPProvisioningTemplate -Path template.xml -Out newtemplate.xml

Converts a provisioning template to the latest schema and outputs the result the newtemplate.xml file.

Example 3

PS:> Convert-PnPProvisioningTemplate -Path template.xml -Out newtemplate.xml -ToSchema V201512

Converts a provisioning template to the latest schema using the 201512 schema and outputs the result the newtemplate.xml file.

© 2017 Microsoft