Forum Discussion

Nigel_Price9911's avatar
Nigel_Price9911
Iron Contributor
Feb 19, 2018

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

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

  • Anonymous's avatar
    Anonymous

    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-not-replicated/

     

    kr,

     

    Paul

     

      • Nigel_Price9911's avatar
        Nigel_Price9911
        Iron Contributor

        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

Resources