SharePoint Foundation 2013 – Apply MasterPage on Site and SubSites – PowerShell Script

On SharePoint Foundation 2013 you can’t easily apply MasterPage on Subsites and Site because the Feature Site Publishing are not available.

So, if you what to do that, you can use powershell, using the script bellow:


$site = Get-SPSite http://fcsharepoint:1000
$CustomMasterpage = "_catalogs/masterpage/CUSTOM.master"
foreach ($web in $site.AllWebs)
   $web.MasterUrl = $site.RootWeb.ServerRelativeUrl + $CustomMasterpage;

Posted on 04/04/2015, in SubSites and tagged , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: