Alexander Anikin's blog

My personal blog

How to Rename Sharepoint 2010 Server

with 9 comments

To rename SharePoint 2010 server we can use to ways:

1. We can use use of the Windows PowerShell Rename-SPServer cmdlet to rename SharePoint and then change server name.

2. But if we have renamed server  (for example, in the case of cloned Virtual Machine)

Solution:1.Verify that you are a member of the local Administrators group on the local computer in order to run Stsadm.2.On the drive on which SharePoint Server 2010 is installed, change to the following directory: %COMMONPROGRAMFILES%Microsoft sharedWeb server extensions14Bin.3.Type the following command, and then press ENTER: stsadm -o renameserver -oldservername <oldServerName> -newservername <newServerName>Note: 
We do not recommend the use of the Windows PowerShell Rename-SPServer cmdlet because it does not work if the server on which the configuration database is stored has already been renamed.

And when you run PowerShell on your server you get the following error: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

And don’t forget change Alternate Access Mappings at Central Administration.


Written by Alex Anikin

September 1, 2010 at 6:55 am

Posted in Sharepoint

9 Responses

Subscribe to comments with RSS.

  1. Alex, this saved me a pile of time. I could not get it to work via Power Shell. One thing, you need to add a space between renameserver and -oldservername.

    Erik Curtis

    November 6, 2010 at 5:25 pm

  2. This saved me as well! I followed the MS article at which tells you to rename the server first and then use PowerShell and was having all kinds of problems. Thank you.


    May 5, 2011 at 11:40 am

  3. So are you supposed to do this before or after you rename the server, or does it do that for you?

    Austin Brogle

    October 28, 2011 at 7:05 pm

  4. Dear Guys,

    I need to rename the image of SharePoint 2010 server & the image SQL server 2008 R2 server….
    I can rename this two images and fix connectivity between the database server and the application of SP 2010 server …????

    would you please advice on which step i will refer

    Thank you in advance


    December 7, 2011 at 9:35 am

  5. […] quick note to say the MS TechNet reference wasn’t useful and Alexander Anikin’s post was infinitely more so to achieve this simple […]

  6. Thank you


    May 20, 2012 at 11:57 am

  7. Tip: Don’t forget to update you SQL Server Alias names in case you installed via “best practice” using an alias name for your sql server connection 🙂

    Jeroen Schoenmakers

    June 6, 2013 at 10:19 am

Leave a Reply

Fill in your details below or click an icon to log in: Logo

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

%d bloggers like this: