Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Redefine Site Master Page to Seattle (the original SharePoint MasterPage)
##Script para redefinir master page
Add-PSSnapin Microsoft.SharePoint.PowerShell
# get site collection
$site = Get-SPSite http://sharepoint-sitecollection
# get site in site collection
$web = Get-SPWeb http://sharepoint-subsite
# set system master page
$web.MasterUrl = $site.RootWeb.ServerRelativeUrl + "/_catalogs/masterpage/seattle.master"
# set custom site collection
$web.CustomMasterUrl = $site.RootWeb.ServerRelativeUrl + "/_catalogs/masterpage/seattle.master"
# update new configurations
$web.Update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.