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