- Rename your server (Let it restart)
- "Start" > "All Programs" > "Microsoft SharePoint 2010 Products" > "SharePoint 2010-Administrationsshell"
- Type: Get-SPAlternateURL
And you will get output similar to this:PS C:\Users\administrator> Get-SPAlternateURL
- IncomingUrl Zone PublicUrl
- http://servername01:9090 Default http://servername01:9090
- http://servername01 Default http://servername01
- type: New-SPAlternateURL -Url http://servername02:9090 -Zone "Default"
And you will get output similar to this:
cmdlet New-SPAlternateURL at command pipeline position 1 Supply values for the following parameters: WebApplication:
In WebApplication type the old URL: WebApplication: http://servername01:9090
And you will get output similar to this:
IncomingUrl Zone
PublicUrl
http://servername02:9090 Default
http://servername02:9090
Do the same for servername01 if needed. You check the changes by running this command: Get-SPAlternateURL