Advertisement
Using Power Shell We can easily change our custom master page in our SharePoint site,once we prepare the script we can use for every time to change the master page.
"Get-SPWeb" i used to get the site URL of the SharePoint in a variable.
We have two Properties to control the master Page settings, CustomMasterUrl and MasterUrl
"Get-SPWeb" i used to get the site URL of the SharePoint in a variable.
We have two Properties to control the master Page settings, CustomMasterUrl and MasterUrl
Site Master Page
--- CustomMasterUrl
System Master Page
--- MasterUrl
Example:
$web = Get-SPWeb http://Dotnetsharepoint.com
$web.CustomMasterUrl =
"/_catalogs/masterpage/Custom.master"
$web.MasterUrl =
"/_catalogs/masterpage/Custom.master"
$web.Update()
If we have a site collection under a managed path like
"sites”, we can change using
“/sites/SITECOLLECTION/_catalogs/masterpage/Custom.master"
$web.CustomMasterUrl =
"/sites/DotnetSharePoint/_catalogs/masterpage/Custom.master"
$web.MasterUrl =
"/sites/DotnetSharePoint/_catalogs/masterpage/Custom.master
76B619F3A0
ReplyDeletehacker arıyorum
hacker kiralama
tütün dünyası
-
-
BA72F4CF63
ReplyDeletex takipçi satın al
Google Konum Ekleme
PK XD Elmas Kodu
Otobüs Simulator Ultimate Apk Para Hilesi
Weplay Para Hilesi
Happn Beğenenleri Görme Hilesi
Bannerlord Hile Kodları
İnstagram Abonelere Özel Görme Hilesi
lindyn oversized swivel accent chair
CB96FEB0A4
ReplyDeleteBeğeni Satın Al
Yabancı Takipçi
Takipçi Satın Al