Forcing use of the same Master Page in sub-sites without Publishing

This seems to come up a few times.  The following sample script in PS applies a common master page across all SPWebs in a site collection.

$site = Get-SPSite
$site | Get-SPWeb -limit all | ForEach-Object { $_.MasterUrl = "/dv1/_catalogs/masterpage/custom_v4.master";$_.Update() }


Thanks to Phil Childs -

Comments (0)

Skip to main content