We have over 80 Site Collections in our Web Application is there a way through power shell that i can set the same master page for all the site collections.
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
I don't have a ready-made PowerShell script but these two should get you going. You can enumerate through all site collections in a web application and then apply the master page to each site collection found. The way that the master page is applied is much better than most you will find on the web because it also excludes Search Centers when it recurses through the site. |
|||
|
|
|
If you have deployed your master page via a feature similar to this one, is all about activating your feature using something similar (http://msdn.microsoft.com/en-us/library/gg447066.aspx) - this has a WebProvisioned event which simply changes master page as soon as the Feature is activated:
If you have your master page in place, you need to combine the above with
|
|||
|
|