Change Masterpage in SP 2010 via Powershell


/ Published in: Windows PowerShell
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $web = Get-SPWeb http://sharepoint
  2.  
  3. $web.CustomMasterUrl = "/_catalogs/masterpage/v4.master"
  4.  
  5. $web.MasterUrl = "/_catalogs/masterpage/v4.master"
  6.  
  7. $web.Update()

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.