Photo yesteryear Nikita Kostrykin at Unsplash
Here’s a brusk snippet which volition reset whatsoever modifications done to a modern domicile page dorsum to the default layout.
Basically yous clear out the CanvasContent1 champaign which stores the page layout in addition to contents.
Connect-PnPOnline https://<tenant>.sharepoint.com/sites/mysite # Get welcome page url $web = Get-PnPWeb -Includes WelcomePage # Load the page $file = Get-PnPFile -Url $web.WelcomePage # Get the page's detail $item = $file.ListItemAllFields # Load the detail id Get-PnPProperty -ClientObject $item -Property Id # Clear the content to reset Set-PnPListItem -List SitePages -Identity $item.Id -Values @{"CanvasContent1"=$null} -SystemUpdateThanks for reading : How To Reset A Modern Domicile Page Using Pnp Powershell