Is there a way of getting all of the site pages using Get-PnPProvisioningTemplate ?

Iron Contributor

Hi

 

IS there a way of getting all of the site pages within a site using Get-PnPProvisioningTemplate and storing them in a ProvisioningTemplate ?

 

Currently, only the home page is extracted from a site.

 

Thanks

 

Nigel

4 Replies

Hi Nigel,

 

A few weeks back I saw a powershell script from @Pieter Veenstra which was able to extract the pages.

it refers to this post i thought https://veenstra.me.uk/2017/03/23/office-365-pnp-replicating-sharepoint-based-intranets-pages-are-no...

 

kr,

 

Paul

 

Thanks Paul

 

I saw that post and I checked that scripting was switched on as per @Pieter Veenstra 's post.

 

Regards

 

Nigel

HI

 

If I Apply two templates to the same Site, the only difference between the two templates being the ClientSidePages section would this work ? @BertJansen @VesaJuvenon @ErwinVanHunen

 

Regards

 

Nigel

Hi

 

I am told it should work fine as applying the templates is cumulative.

 

Regards

 

Nigel