Forum Discussion
Rajeshlohar
Apr 15, 2022Copper Contributor
SharePoint Pages Migration from SharePoint 2016 on-premises to SharePoint Online Modern Pages
Hello,
We are migrating SharePoint 2016 on-premises to SharePoint Online. SharePoint 2016 contains publishing pages and custom page layouts.
is there any way using PowerShell we can migrate and modernize the all the publishing pages and other classic pages to SharePoint Online modern pages?
Thanks,
Rajeshlohar I think this is what you are looking for Transform classic pages to modern pages using PowerShell | Microsoft Docs
- RajeshloharCopper Contributor
Thanks SteveKnutson,
I tried it but getting error as ConvertTo-PnPPage : could not find file PnP.Framework.resources
I am not sure what is missing.
Thanks,
- Hi Rajeshlohar You will need to install the latest PnP PowerShell module on to your PC to get the PnP resources. This link includes instructions for adding the module
https://pnp.github.io/powershell/articles/installation.html