Renameserver: Stsadm operation (Office SharePoint Server)

Updated: November 12, 2008

Applies To: Office SharePoint Server 2007

Updated: 2008-11-12

Description

Changes the name of the specified server in the configuration database.

This operation is used before or after a server is renamed in the domain to avoid having to rebuild the server or farm.

Syntax

stsadm -o renameserver

   -oldservername <oldServerName>

   -newservername <newServerName>

Parameters

Parameter name and short form Value Required? Description

oldservername

A valid server name, such as "OldServer"

Yes

The old name of the server listed on the Servers in Farm page of the SharePoint Central Administration Web site.

newservername

A valid server name such as "NewServer"

Yes

The new name of the server listed on the Servers in Farm page of the SharePoint Central Administration Web site.

Remarks

The renameserver operation cannot be used to rename query and index servers.

If the renameserver operation is used to make a name change on a computer that runs SQL Server and hosts the configuration database, then the renameserver operation must be run on every front-end Web server and application server in the farm. However, if the renameserver operation is used to make a name change on a computer that runs SQL Server and hosts databases other than the configuration database, you only need to run the renameserver operation on one server in the farm.

Community Content Add
Annotations FAQ
Named instances
This only seems to work if your SQL instances are the same name on both boxes.
Moving all farm databases to new SQL server using stsadm -o renameserver

SSPs need to be looked after when moving entire farms - details in Technet article

"This article contains information and steps to move all of the databases associated with Microsoft Office SharePoint Server 2007 from one database server to another database server in the same farm. You might want to move all of the databases if you are upgrading the hardware or the software on the database server — for example, moving from a 32-bit to a 64-bit version of Microsoft SQL Server 2005..."

http://technet.microsoft.com/en-us/library/cc512725.aspx