Convert-PnPProvisioningTemplate

Converts a provisioning template to an other schema version

Syntax

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

Examples

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

Convert-PnPProvisioningTemplate -Path template.xml

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

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

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------------------

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.

Parameters

-Encoding

The encoding type of the XML file, Unicode is default

Type:Encoding
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Force

Overwrites the output file if it exists

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Out

Filename to write to, optionally including full path

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

Path to the xml file containing the site template

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

The schema of the output to use, defaults to the latest schema

Type:XMLPnPSchemaVersion
Position:1
Accept pipeline input:False
Accept wildcard characters:False