Rename a WSS3/MOSS Server

I took this from Mirjams blog. I have verified that it works. I am adding it here so that I can find it when I need it, and as I mentioned, it works great.

Renaming a WSS3 or MOSS server requires very specific tasks in a specific order. If you don’t follow the following instructions precisely, the chances are that you may need to reconfigure your whole MOSS environment.

Here are the steps to take, and the order in which to take them if you want to rename a server that has WSS3 or MOSS already installed and configured on it:

*** NOTE: Use only letters, digits and minus for the machine name (so no underscores), max 15 characters.

 

  1. Change each alternate access mapping for your WSS3 or MOSS deployment in Central Administration:
    1. Open Central Administration, “Operations” Tab, “Alternate access mappings” link
    2. Modify each mapping item to reflect your newly chosen server name
  2. Use stsadm.exe to invoke the “renameserver” command option:
    1. Open a command prompt window
    2. cd “C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BIN”
    3. stsadm -o renameserver -newservername -oldservername
  3. Rename your Server via Change Name Operation in Windows Server 2003:
    1. Start Menu | Control Panel | System, “Computer Name” tab, “Change” button.
    2. Input your new server name
  4. Reboot the server NOW.
  5. Update the MOSS farm creadentials
    1. After reboot, open command prompt
    2. cd C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BIN
    3. stsadm -o updatefarmcredentials -userlogin -password
  6. iisreset /noforce
  7. Check all application pool identities in IIS, update where the old machine name is still there.
  8. If you already have a search index drop this, and rebuild it
  9. Congratulations, your server is now renamed.