How to convert Classic page to modern page in SharePoint using Pnp Powershell in Office 365?

Hello SharePointers,

Here are the Pnp powershell commands to convert Classic page to modern page in SharePoint using Pnp Powershell in Office 365.

Connect-PnPOnline -Url https://mydomain.sharepoint.com/sites/EmpTeamsite

ConvertTo-PnPClientSidePage -Identity Mypage.aspx -AddPageAcceptBanner

Happy SharePoint Folks!!

Leave a Reply

Your email address will not be published. Required fields are marked *