Setting up Master Page using PowerShell in SharePoint 2013

In this blog, we will see how to set up a master page for a sharepoint Site using PowerShell command.
 
$web = Get-SPWeb http://mysite
$web.CustomMasterUrl = "/_catalogs/masterpage/Mycustom.master"
$web.MasterUrl = "/_catalogs/masterpage/Mycustom.master"
$web.Update()
  •  CustomMasterURL is siteMaster Page
  • MasterURL is Master Page 
Ebook Download
View all
Learn
View all