Getting All Publishing Pages into Output Xml format

Copper Contributor

When I issue the following command against a Publishing Site:

 

Get-PnPProvisioningTemplate -Handlers Pages,PageContents,Publishing,WebPart -PersistPublishingFiles -IncludeNativePublishingFiles -Verbose -Force -Debug -Out $recent/MySitePagesTemplate2-Search.xml

 

The Output only returns the File content for default.aspx, it does not return ANY other file located in the Search Center Pages folder.

2019-06-26_13-18-37.png

 

 

There are several pages, results.aspx, videresults.aspx, that are not generated in the output.

2019-06-26_13-14-00.png

Is a custom handler needed?  How do I get it to recognize the other pages.  I am willing to develop the code.  First, I would need some guidance for the best means to setup a test case in the PnP PowerShell library and then work out the code issues as required. Any help or guidance is greatly appreciated.

 

 

 

 

 

 

 

0 Replies