Hyper-V 2012 Access Denied
While trying to connect from a Windows 8 Enterprise client machine to my Windows Server Hyper-V 2012 server via the Hyper-V Manager, I kept getting this error message:
“Access denied. Unable to establish communication between Client and Server”.
I found a way to fix this. Here is how:
- From the command prompt of the client open a command prompt and type DCOMCNFG
- Go to: “Component Services > Computers > My Computer”.
- Open Properties for “My Computer” and select the COM Security tab.
- In “Access Permissions” area click the “Edit Limits” button.
- Select the “Anonymous Logon”-group and make sure the “Remote Access” is set to Allowed.
Now your client will connect successfully to the server.
Note that for server management “Server Manager >> Computer Management” you still need a firewall rule on the server or simply disable the firewall completely [not recommended] using this command:
netsh firewall set opmode mode=disable
16 Comments
dave
Thanks for this. I was going round in circles before finding this link
Thomas Berisford
Wow, You saved the day. Thanks! Any idea why this needed to be changed? It was working fine before today. Now, all of a sudden, I am into some administrative tool that I have never used before, to change a setting that I did not know existed and Viola` It works. :-/ I don’t get it… and that bothers me. Please elaborate if you are still around. Thanks!
Rajiv
@ Thomas: not sure why it worked earlier for you. It never works on any new Windows 8 machine I install….until I make this change.
Why do we need this change…I am stumped on that question as well. I suspect Microsoft hurried up and released HV-manager and did not test every scenario?
wolffhaven
Thanks heaps for this!
dushyant
Thanks Raj, this stuff fixed around 10% of my work stress 😀
Thanks a million dude.
Richard D.
Thanks! Worked like a charm.
sven
thanks, it’s funny that microsoft does not mention this on TechNet.
Oscaru
Hi, lost 4 hours messing with the hyper-v firewall and couldn’t understand why I could not connect to the Hyper-V host. Thanks for your help.
Zakaria CHRAMI
Thanks for your help !
Rob
Thanks for the information – this has really saved me loads of hours trying to figure out the problem!
scrosler
Worked perfect! Thanks!
waka
Thanks man! Life saver! Windows is so anonymous!
Jagdev Singh
Thanks, worked perfect.
saved a full day.
va - drum & bass
Some genuinely superb information, Glad I found this.
Ahappyguy
I’ve looked at about a million posts and this fixed everything. Simple and Concise.
Rajeev
Glad to know that this helped you 🙂