We have a sharepoint server 2019 on-premises , I need to convert Convert Classic Pages to Modern, below code appears to work only for sharepoint online , How can I convert sharepoint server 2019 on-premises Classic Page to Modern? Please advise.

ConvertTo-PnPClientSidePage -Identity page1.aspx -AddPageAcceptBanner

We recently installed SharePoint Server 2019 on-premises in our DEV environment. Only Viewlists page is displaying in Modern mode, all the other pages displaying in classic mode by default.


We need to set a streamlined view for our sites, all the pages need to be converted to modern mode. Please advise.

  • did you find a way to do this ?
    – Imen Turki
    Jun 4, 2020 at 11:55

1 Answer 1


By design, we can't convert classic page to modern page in SharePoint 2019.

The commands you mentioned are only available for SharePoint online, and we currently have no other way to convert page to modern page.

There seems to be no other way to solve your problem, I suggest you create a modern page in a modern site.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.