I need a way to change SharePoint 2019 site master page using PowerShell, What are the steps and PowerShell script I would use to set the Site Master Page for a SharePoint 2019 site using PowerShell?
To set Site Master Page in SharePoint 2019 using PowerShell, you can follow these steps:
Run the below PowerShell Script with your site URL
$SPWeb = Get-SPWeb "http://debug.to/sites/HR/" #P.S: SiteURL #Set the current site master page to the default master page $SPWeb.MasterURL = "/sites/HR/_catalogs/masterpage/oslo.master" $SPWeb.Update()
Go back to refresh your site, that should now use the default site master page
1.1k questions
679 answers
459 comments
193k users
Related Activities
Categories
Most popular tags