Partager via


Renameserver : opération Stsadm (Office SharePoint Server)

Mise à jour : 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.