Forum Discussion

Gagandeep Bhatia's avatar
Gagandeep Bhatia
Former Employee
Jan 31, 2018

Issues in exporting Provisioning template by SharePoint PowerShell PnP

I tried to export the Provisioning template in classic publishing site with Handlers Pages and PageContents but it only exports the Home Page in output file and does not include other pages.

 

Following is the PowerShell cmdlt I'm tried:

Get-PnPProvisioningTemplate -Web $siteUrl -Out C:\Temp.xml -Handlers Pages, PageContents
Get-PnPProvisioningTemplate -Web $siteUrl -Out C:\Temp.xml -Handlers  PageContents

 

Is there any way i can achieve the same ??

1 Reply

Resources