Hyper-V uninstall server 2008 r2 standard changed computer name

I installed Hyper-V on a production server 2008 r2. After realizing I didn't want to use it I removed the Virtual server, which was never started, and uninstalled the hyper-v role.
Now the server name has been changed to the name given to the hyper-v server.

When I open server manager it gives me an error "Device manager is running in read only mode because you are running it on a remote computer"
In server manager at the top it says my server name is "WIN-IPE632OG13D" instead of "SQL1" like it should be.

This is causing some SQL1 service to not run. The main SQL database has not been affected and it is still in production.

I need to get this back to SQL1. Any help is appreciated.
scooter47Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Svet PaperovIT ManagerCommented:
If you run ipconfig /all does it show the new computer name or the old one?

You can use Powershell to set the host name: Rename-Computer http://technet.microsoft.com/en-us/library/hh849792(v=wps.620).aspx
0
scooter47Author Commented:
Thanks for the reply. Yes it shows the old (correct) computer name.

I ended up fixing the problem by searching the registry for that computer name and just changing it back to SQL1. There were only about 5 or six entries. I rebooted and all is good. Not sure what happened to cause that issue.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.