SharePoint 2010 Foundation- Cannot Change Server Name?
-
Wednesday, October 13, 2010 4:07 PM
I changed my server name yesterday and cannot access SP any more (Cannot connect to configuration database error). This article: http://technet.microsoft.com/en-us/library/cc288510.aspx says you can rename using Powershell but when I open the mgmt shell I get the error "“The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered” . I ran the mgmt shell "as administrator"
I enabled TCP/IP and Named Pipes in SQL Manager and connected from a remote machine. Tried to add DBO to SharePoint_Shell_Access but get an error ""Cannot use the special Principal "dbo" (Microsoft SQL Server Error 15405)".
I have re-created this on a lab machine with a pretty plain vanilla install (Single Server). I tried to run the SharePoint Config but it says "not connected to a farm". Saw an article where you can disconnect from farm (that is the next prompt) and then reconnect. Tried and cannot reconnect...
I am really trying to avoid naming my server back to the original name, for it is a production server now (SharePoint not yet, thankfully). Any help would be greatly appreciated
All Replies
-
Wednesday, October 13, 2010 4:38 PM
Use stsadm -o renameserver command instead of "Rename-SPServer", it should work.
Microsoft SharePoint MVP |http://razirais.wordpress.com| MCT| MCPD SharePoint 2010 Developer| MCITP SharePoint Administrator 2010- Marked As Answer by Stanfford Liu Monday, October 18, 2010 5:05 AM
-
Thursday, October 14, 2010 6:19 PM
Thank you so much that worked like a charm in like 20 seconds!
To clarify I did this:
stsadm -o renameserver -oldservername OLDSERVER -newservername -NEWSERVER
then ran IISRESET /NOFORCE
- Marked As Answer by Stanfford Liu Monday, October 18, 2010 5:05 AM
-
Thursday, October 14, 2010 6:33 PMIs there a known issue with the PowerShell command? Why wouldn't it work?

