![]() |
| V4.master |
Nowchanging from V4 master page to custom master page using below command in power shell.
$site = Get-SPSite http://Site URL/
foreach ($web in $site.AllWebs) {
$web; $web.CustomMasterUrl = "/_catalogs/masterpage/custom.master";
$web.Update(); $web.CustomMasterUrl;
$web.Dispose()
}
foreach ($web in $site.AllWebs) {
$web; $web.MasterUrl = "/_catalogs/masterpage/custom.master";
$web.Update(); $web.MasterUrl;
$web.Dispose()
}
$site.Dispose()
write-host "Complete! Custom.master is now applied";
After execute this command,the result will be like this...
![]() |
| custom.master |



Comments
Post a Comment