Forum Discussion
Khalid Hajjouji
Oct 25, 2018Copper Contributor
SharePoint 2016/PnP powershell: how to get page content?
We are using SharePoint 2016. I am working alot with PnP powershell. I would like to use the command "Get-PnPProvisioningTemplate" to get the content of the welcomepage which is an publishing page. B...
Oct 25, 2018
Have you tried Get-PnPClientSidePage or Get-PnPWikiPageContent ?
One of them should do the trick, but if not, you can extract the XML of each web part on the page using Get-PnPWebPartXML and manually build the page XML
hope this helps
Khalid Hajjouji
Oct 28, 2018Copper Contributor
I will try it and let you know if it works.