Apr 16 2021 04:39 AM
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 need to get all the pages in the template to provision later another sites directly using the cmdlet:
Invoke-PnPSiteTemplate -Path template.xml
If you know if it is not possible or how to do it I would be really thankful!
Apr 16 2021 05:17 AM
SolutionI have found a partial solution to export the pages one by one using the following cmdlet:
Export-PnPClientSidePage -Identity "page-name" -Out "template.xml"
Apr 16 2021 05:17 AM
SolutionI have found a partial solution to export the pages one by one using the following cmdlet:
Export-PnPClientSidePage -Identity "page-name" -Out "template.xml"