Thursday, June 6, 2013

SharePoint rename web application

Here is the small powershell script which will rename your SharePoint web application.


[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")

#Point to the site your web application hosts to grab a reference to the web application
$SPSite = new-object Microsoft.SharePoint.SPSite("http://servername:114")
$WebApp = $SPSite.WebApplication

$WebApp.Name = "New webapplication name"

#Update Web Application
$WebApp.Update()


Thank you !!



1 comment:

  1. But these steps renames only the web application name. If you want to change web application URL You have to update AAM and IIS Host header bindings.

    http://www.sharepointdiary.com/2013/07/how-to-change-sharepoint-web-application-name-and-url.html#ixzz2aAy5eC5y

    ReplyDelete