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:

  1. From the command prompt of the  client open a command prompt and type DCOMCNFG
  2. Go to: “Component Services > Computers > My Computer”.
  3. Open Properties for “My Computer” and select the COM Security tab.
  4. In “Access Permissions” area click the “Edit Limits” button.
  5. 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

Be Sociable, Share!

16 Replies to “Hyper-V 2012 Access Denied”

  1. 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!

    1. @ 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?

  2. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *