How to Change the Welcome in SharePoint 2013 using PowerShell

Steps
  1. Start your windows PowerShell on your computer.
  2. Right click and select Run as administrator option.
  3. Paste the below script on the PowerShell window and click the enter button.
  4. Check your SharePoint site Feature will activated successfully.
  1. Add-PsSnapin Microsoft.SharePoint.PowerShell     
  2. $w = get-spweb http://gauti.sharepoint.com     
  3. $r = $w.RootFolder     
  4. $r.WelcomePage = "Pages/newmasterpage.aspx"     
  5. $r.Update()     
  6. $w.Dispose()   
Run the script with the required administrator privilege.To verify that, Check the output window.
 
Thanks for reading my blog.