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.