SharePoint Asked on November 19, 2021
I want to convert classic project site in sharepoint online to modern sharepoint site.I am not understanding how to do this.
Invoke-SPOSiteSwap is a SharePoint Online PowerShell cmdlet that can be used to swap out your old classic SharePoint root site in your Microsoft 365 tenant and replace it with a shiny new Modern Communication Site ,Modern Team Site or Classic team Site (Invokes a job to swap the location of a site with another site while archiving the original site).
For more details refer this blog https://regarding365.com/invoke-spositeswap-a668bcad4e9b
Or
one more workaround Convert Classic root sites to Modern SharePoint
Modernize your root site (Microsoft Documentation)
Answered by Jefin Mathew on November 19, 2021
You could take a look at this:
Pnp powershell code for your reference:
$userName = "username"
$passWord = "password"
$encPassWord = convertto-securestring -String $passWord -AsPlainText -Force
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $userName, $encPassWord
Connect-PnPOnline -Url "https://contoso.sharepoint.com/sites/SharePointRNDClassic" -Credentials $cred
#Using the below command converting the classic "home.aspx" page to modern page and adds the page accept banner web part on top of the page.
ConvertTo-PnPClientSidePage -Identity home.aspx -AddPageAcceptBanner
Answered by Amos on November 19, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP