How to Rename Web Application Name In SharePoint 2010
There are so many reasons one would like to rename a SharePoint 2010 web application, whether for consistency sake, even to correct misspellings, now with the power of Power Shell it’s just simple. Please be consider the
There are so many reasons one would like to rename a SharePoint 2010 web application, whether for consistency sake, even to correct misspellings, now with the power of Power Shell it’s just simple. Please be consider the
following script
would not rename the IIS site and the Application pool,
So, let’s get down to the renaming the web application by creating a new Power Shell (.ps1) file using Notepad and by pasting the following code into it:
So, let’s get down to the renaming the web application by creating a new Power Shell (.ps1) file using Notepad and by pasting the following code into it:
$rwa.Name
$rwa.Name="Your
New Web Application Name"
$rwa.Update()
Get-SPWebApplication | where {$_.Name -match "Your New Web Application
Name"}
Give it a name, like RenameWebApp.ps1 and save in your
SharePoint 2010 server.
Open SharePoint 2010 Management Shell, make sure you are under
the path, where your .PS1 file located.
Example: C:\> ./RenameWebApp.ps1
Hit Enter and your web application has a new name.
Hi Anil,
ReplyDeleteGood one.This is very interesting blog. Keep posting blogs like this. Keep it up.