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 files\microsoft shared\web server extensions\12\bin\stsadm"
@SET PSCONFIG="%ProgramFiles%\common files\microsoft shared\web server extensions\12\bin\psconfig"

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 <oldServerName> 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 <oldServerName>. 

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.

Rsponse IisReset:

Attempting stop…
Internet services successfully stopped
Attempting start…
Internet services successfully restarted
 
  • More WSS renaming: From “Admin tools” – Run “SharePoint Products and Technologies Configuration Wizard” with default settings (just hit next on all screens)

But several links were still using the old servername in my VPC, so this is not a complete HowTo, unfortunately.

  • There is a chance that the above could work using STSADM -o addzoneurl or -o Addalternatedomain or SPCA – Operations – Alternate Access Mappings. I haven’t tried it out, yet.

See also: http://icodehead.blogspot.com/2008/09/how-to-rename-your-vhd-computer.html

HowTo create a Child Site:

%STSADM% -o CreateSite -url http://foo.tst/sites/Sales/East -ownerlogin foodomain\wssusr2 -owneremail rasor@foo.tst -sitetemplate STS#0

 

References on TechNet

Sections:

Backup and restore: Stsadm operations (Windows SharePoint Services)

Database: Stsadm operations (Windows SharePoint Services)

Features and solutions: Stsadm operations (Windows SharePoint Services)

General: Stsadm operations (Windows SharePoint Services)

Import and export: Stsadm operations (Windows SharePoint Services)

Installation: Stsadm operations (Windows SharePoint Services)

Logging and events: Stsadm operations (Windows SharePoint Services)

Search: Stsadm operations (Windows SharePoint Services)

Security: Stsadm operations (Windows SharePoint Services)

Site management: Stsadm operations (Windows SharePoint Services)

Upgrade and migration: Stsadm operations (Windows SharePoint Services)

Workflow management: Stsadm operations (Windows SharePoint Services)

 

The End.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: