Forum Discussion
felipelf
Apr 16, 2021Copper Contributor
Getting all the pages of a site in the template
I am new in SharePoint and trying to get the template of a site and all the pages of it using the cmdlet: Get-PnPSiteTemplate -Out .\template.xml I am not getting more than the homepage. I ne...
- Apr 16, 2021
I have found a partial solution to export the pages one by one using the following cmdlet:
Export-PnPClientSidePage -Identity "page-name" -Out "template.xml"
Tonje Waasjø
Feb 13, 2025Copper Contributor
Hi felipelf,
I am trying to run the Get-PnPSiteTemplate -Out .\template.xml, but I get the error unauthorized. How did you do the authorization?