WSS3.0: HowTo use STSADM.EXE

  • STSADM is the cmd line tool for SP Central Administration
  • PSCONFIG is the cmd line tool for SP Configuration Wizard

Each STSADM command line is using a shortcut to the program (shortcut to PSCONFIG, too):

@SET STSADM="%ProgramFiles%common filesmicrosoft sharedweb server extensions12binstsadm"
@SET PSCONFIG="%ProgramFiles%common filesmicrosoft sharedweb server extensions12binpsconfig"

HowTo rename a server (in a VPC):

http://blogs.msdn.com/carloshm/archive/2007/04/16/howto-rename-my-domain-single-moss-vpc.aspx

  • Rename the server in Windows from the “My Computer” icon – Properties – Computer Name
  • Rename the server in WSS:
@SET oldServerName=youroldsrvname
@SET newServerName=yournewsrvname
@SET usr=sp-mosssetup
@SET psw=moss!
%STSADM% -o renameserver -oldservername %oldServerName% -newservername %newServerName%
%STSADM% -o updatefarmcredentials -userlogin %newServerName%%usr% -password %psw%
IISRESET /NOFORCE

Response renameserver:

The server contains the configuration database. To complete this operation, you must rerun this command on all machines that are joined to the farm. A restart may also be required.
Operation completed successfully.
You may also need to update any alternate access mappings referring to .

Response updatefarmcredentials :

To ensure that all credential caches in IIS have updated, you must run the command “IISRESET /NOFORCE” on all servers in the farm. This should be done after all credential updates have been completed.
Operation completed successfully.