How to recursively apply a custom master page to all sites in a site collection

This script is intended to recursively apply a custom master page to all the sites created in a site collection. The script uses the Get-SPSite cmdlet to get access to the  specific site collection and the AllWebs property in the SPSite object as the way to obtain all the sites

 
 
 
 
 
5 Star
(1)
1,161 times
Add to favorites
SharePoint
5/22/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • SharePoint Online 2013?
    2 Posts | Last post May 26, 2015
    • Hi.  Will this work for SPO 2013?  Every sub-site seems to need its own copy of te master page.  Thanks.  Nick
    • Hello Nick,
      Sorry, but this script is ready for OnPremises, no for SharePoint Online.
      Kind regards,