SharePoint Pages Migration from SharePoint 2016 on-premises to SharePoint Online Modern Pages

%3CLINGO-SUB%20id%3D%22lingo-sub-3286672%22%20slang%3D%22en-US%22%3ESharePoint%20Pages%20Migration%20from%20SharePoint%202016%20on-premises%20to%20SharePoint%20Online%20Modern%20Pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3286672%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20migrating%20SharePoint%202016%20on-premises%20to%20SharePoint%20Online.%20SharePoint%202016%20contains%20publishing%20pages%20and%20custom%20page%20layouts.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eis%20there%20any%20way%20using%20PowerShell%20we%20can%20migrate%20and%20modernize%20the%20all%20the%20publishing%20pages%20and%20other%20classic%20pages%20to%20SharePoint%20Online%20modern%20pages%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3286672%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3289578%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Pages%20Migration%20from%20SharePoint%202016%20on-premises%20to%20SharePoint%20Online%20Modern%20Pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3289578%22%20slang%3D%22en-US%22%3EI%20suggest%20taking%20a%20look%20a%20the%20PNP%20GitHub%20issues%20-%20it%20could%20be%20something%20like%20this%20causing%20the%20issue.%20%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2Fpnpframework%2Fissues%2F110%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fpnp%2Fpnpframework%2Fissues%2F110%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3288010%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Pages%20Migration%20from%20SharePoint%202016%20on-premises%20to%20SharePoint%20Online%20Modern%20Pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3288010%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F43161%22%20target%3D%22_blank%22%3E%40Steve%20Knutson%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20already%20installed%20it.%20still%20it%20is%20throwing%20the%20same%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3288009%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Pages%20Migration%20from%20SharePoint%202016%20on-premises%20to%20SharePoint%20Online%20Modern%20Pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3288009%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1303282%22%20target%3D%22_blank%22%3E%40Rajeshlohar%3C%2FA%3E%20You%20will%20need%20to%20install%20the%20latest%20PnP%20PowerShell%20module%20on%20to%20your%20PC%20to%20get%20the%20PnP%20resources.%20This%20link%20includes%20instructions%20for%20adding%20the%20module%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fpowershell%2Farticles%2Finstallation.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpnp.github.io%2Fpowershell%2Farticles%2Finstallation.html%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3288008%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Pages%20Migration%20from%20SharePoint%202016%20on-premises%20to%20SharePoint%20Online%20Modern%20Pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3288008%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F43161%22%20target%3D%22_blank%22%3E%40Steve%20Knutson%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20it%20but%20getting%20error%20as%20%3CFONT%20color%3D%22%23DF0000%22%3E%3CSTRONG%3EConvertTo-PnPPage%20%3A%20could%20not%20find%20file%20PnP.Framework.resources%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3EI%20am%20not%20sure%20what%20is%20missing.%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3287969%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Pages%20Migration%20from%20SharePoint%202016%20on-premises%20to%20SharePoint%20Online%20Modern%20Pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3287969%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1303282%22%20target%3D%22_blank%22%3E%40Rajeshlohar%3C%2FA%3E%26nbsp%3BI%20think%20this%20is%20what%20you%20are%20looking%20for%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Ftransform%2Fmodernize-userinterface-site-pages-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETransform%20classic%20pages%20to%20modern%20pages%20using%20PowerShell%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

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,

 

5 Replies

Thanks @Steve Knutson,

 

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

Hi @Steve Knutson,

 

I already installed it. still it is throwing the same error.

 

Thanks,

I suggest taking a look a the PNP GitHub issues - it could be something like this causing the issue.
https://github.com/pnp/pnpframework/issues/110