SharePoint Change Masterpage of all site and subsites using PowerShell
$site = Get-SPSite 'http://Site url'
foreach ($web in $site.AllWebs)
{
$web.MasterUrl = "/_catalogs/masterpage/seatle.master";
$web.CustomMasterUrl = "/_catalogs/masterpage/seatle.master"
$web.update()
}
foreach ($web in $site.AllWebs)
{
$web.MasterUrl = "/_catalogs/masterpage/seatle.master";
$web.CustomMasterUrl = "/_catalogs/masterpage/seatle.master"
$web.update()
}
Comments
Post a Comment