Can't migrate SharePoint pages using PnP PowerShell

Regular Visitor

So I need to move the site pages from my SharePoint dev environment to another environment using PnP PowerShell.

I get the site template with pages and lists using below command.

Get-PnPSiteTemplate -Out test.xml 

my issue was in my generated xml file. there was my old environment users are present as authors in pages details .so the PnP cmdlet not creating sites in new environment. I used the below command.

Invoke-PnPSiteTemplate -Path test.xml

my question is how to move the site pages to another environment without any old dev users.

0 Replies