pnp / script-samples

A sample gallery of scripts to manage all things Microsoft 365.
https://pnp.github.io/script-samples/
MIT License
220 stars 136 forks source link

Modernize Blog Pages #683

Closed nicole-ge closed 3 months ago

nicole-ge commented 7 months ago

Hi I want to Modernize classic blog page from SP2019 onprem to SPO using this script https://pnp.github.io/script-samples/modernize-blog-pages/README.html?tabs=pnpps

But it doesn't work. Can someone help please?

Kind regards

pkbullock commented 3 months ago

This post isnt optimised for On-Prem to Cloud modernisation, however, with some small tweaks to the Connect-PnPOnline with the OnPrem flag, you can establish the connection.

https://pnp.github.io/powershell/cmdlets/Connect-PnPOnline.html#example-11

I've not tested recently, been a while, more tweaks to the script might be needed. Hope this helps.

pkbullock commented 3 months ago

Closing as answered.