Renaming a Sharepoint 2007 / WSS 3.0 Server

I recently needed to rename my Sharepoint development machine so I could move it into a new collaborative development environment (versus standalone in a workgroup). A little searching turned up this tutorial[www.jjfblog.com] from a while back, which worked with a slight modification. I have reposted the contents of the tutorial below, with a slight modification (see original post and comments for details).

Note: The new collaborative environment uses Team Foundation Server 2008, so look for a later post on collaborative Sharepoint development using TFS.


First: Change each alternate access mapping for your MOSS/WSS deployment in Central Administration
  1. Open Central Administration
  2. Click on the “Operations” Tab
  3. Click on the “Alternate access mappings” link under the “Global Configuration” heading
  4. Modify each mapping item to reflect your newly chosen server name, making sure to keep port numbers the same (this also include the mapping for Central Administration, don’t worry it's cool)
Second: Use stsadm.exe to invoke the “renameserver” command option
  1. Open a command prompt window and navigate to the folder where stsadm.exe sits. Normally “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN”.
  2. Use the renameserver command as follows, replacing and with the new and old names of your server:

    stsadm -o renameserver
    -newservername
    <newname> -oldservername <oldname>

Third: Rename your Server via Change Name Operation in Windows Server 2003
  1. Now the last step is to simply right click on My Computer
  2. Open “Properties”
  3. Click on “Computer Name” tab
  4. Click “Change” button
  5. Input your new server name and reboot the server

[added by Sharepointers]
Fourth: Use stsadm.exe to invoke the "updatefarmcredentials" command option
  1. Open a command prompt window and navigate to the folder where stsadm.exe sits. Normally “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN”.
  2. Type in the following command and press [enter]:

    stsadm -o updatefarmcredentials -identitytype NetworkService
Note: After the command completes, you may need to run iisreset, using the /noforce option.

Comments

Anonymous said…
This is a beautiful post - thank you SO SO SO much!
Anonymous said…
Hi,

I just wanted to say that I really enjoyed your blog and this post. You make some very informative points. Keep up the great work!

-
Sharepoint Development
Anonymous said…
Last week, the server name was changed without my information, and I was looking for a way to get the site back. Central admin didn't work due to name change. I used the rename command in your post and it's working perfectly so far. Thank you.
phq said…
Worked perfectly for me - thanks a million!
Anonymous said…
My Query is: i have to move my share point application server and database server to the new server by using the VMware reimage and hostname will be changed. can hostname can be changed first then update the farm.

Popular posts from this blog

ERROR: Failed to create feature receiver...