I renamed local PC name and after reboot SharePoint 2010 Foundation does not work anymore.

At this page it is described to use the PowerShell command:

Rename-SPServer [-Identity] <OriginalServerName> -Name <NewServerName>

I launched PowerShell with Administrator permissions but the execution failed with the message

"Rename-SPServer : The farm is unavailable"

Do you known which could be the problem?

link|improve this question
feedback

2 Answers

Rename-SPServer needs to be run BEFORE the servername is changed. It seems that it is a good idea to use the stsadm -o renameserver command instead, even though Microsoft recommends using the powershell command.

See the following article: http://aanikin.wordpress.com/2010/09/01/how-to-rename-sharepoint-2010-server/

I just used the stsadm command successfully when renaming a standalone server, but i did run it before renaming the server. I think that this is generally a good idea.

If everything fails, you can probably run the SharePoint 2010 Products Configuration Wizard and then through Central Administration backup and restore your site collections.

link|improve this answer
feedback

As suggested, the PROPER way would be to change the name back temporarily, run the STSADM tools and change the name to the desired one.

The reason the name change prevents the instance from starting is that there are several places in the registry that refer to the location of the Central Admin and Content Databases. Specifically, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\Secure\ConfigDB, allthough there are others. If you search for the old name with a backslash and the word sharepoint(server\sharepoint), you should find them. STSADM can't make changes to the Config DB unless those references are right. Between those two things, you sholud be able to get it running with re-installing.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.