Sunday, June 10, 2012

Hyper-V Server 2012 and remote hyper-v management in a workgroup (on windows 8 client)

For the Windows Hyper-V Server 2012 (=core)

  1. Enable remote config (sconfig.cmd option 4)
  2. Add a local administrator  (sconfig.cmd option 3)
    1. with same username and password as you are using on the Windows 8 Client 
    2. with other username and password (on client you need to use 

      cmdkey /add:<ServerName> /user:<UserName> /pass:<password>
For other remote admin like Event Viewer, Volume Management etc. some firewall rules need to be enabled:

netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=yes
netsh advfirewall firewall set rule group="Remote Service Management" new enable=yes
netsh advfirewall firewall set rule group="Performance Logs and Alerts" new enable=yes
Netsh advfirewall firewall set rule group="Remote Event Log Management" new enable=yes
Netsh advfirewall firewall set rule group="Remote Scheduled Tasks Management" new enable=yes
netsh advfirewall firewall set rule group="Remote Volume Management" new enable=yes
netsh advfirewall firewall set rule group="Remote Desktop" new enable=yes
netsh advfirewall firewall set rule group="Windows Firewall Remote Management" new enable =yes
netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable =yes
sc config vds start= auto
net start vds

(for readonly remote device manager I enabled GPO "Allow remote access to the Plug and Play interface", but still got an error trying to open a remote device manager)

For the Windows 8 Client

  1. Install Hyper-V Client Tools using "Turn Windows Feature on or off" (win-Q, search on "control panel", etc.)
  2. Start component services config (win-Q, search on "DCOMCNFG", right click and select "Run as administrator"
  3. Select "Console Root > Component Services > Computers > My Computer"
  4. Right click and select properties
  5. Select the tab "COM Security"
  6. Click on "Edit Limits" for the Access Permissions
  7. Allow remote access by setting the checkmark for the "ANONYMOUS LOGON"
For other remote admin like Event Viewer, Volume Management etc. you also need to open firewall on client using script above.

Tested this on the RC version of both server and client.


  1. Excellent - just what I needed to get going. Thanks

  2. Thanks.
    I had joined Hyper-V 2012 Server to a VM Server 2012 Domain but was still not able to remotely manage. Opening the above firewalls allowed access though.

  3. I get "RPC server unavailable. Unable to establish communication between server and My PC"
    Any idea why? I have followed the procedure above...


    1. Looks like firewall issue :

      Did you enable firewall rules using provided script on both server and client(without errors)?

      I only tested this using the default microsoft firewall and not with a 3rd-party firewall installed.

    2. Hi yes I switched off the firewall on the server and client. I can connect to the server with RSAT and with Hyper V manager but in the HyperV manager I get the RPC unavailable issue...

    3. Hi guys just to let you know. It seems like it was an issue with running Windows 8 as a virtual machine. I was using VMWare workstation 9. It might have something to do with the VM virtual network settings but anyway after installing Win8 on a PC it worked 100%
      Thanks for the help!

    4. What was the connection setting for the VM running Win8? Was it Bridged, NAT or Host-only?

      Using a bridged connection should be fine (is like connecting machine directly to your LAN).

  4. Yes it was set to NAT.
    Anyway as a test I tried to change it to Bridged but now my VM does not get an IP. I dont know if its because I am using my WiFi connection on my laptop at home now. When I installed VMWare and the VM I was at work connected with a normal RJ45 into my laptop.
    Anyway I at least got it working on a physical PC! All that matters for now. Thanks again.

    1. Does Not Work over NAT

  5. Worked a treat! No idea why the remote management stopped working all of a sudden. The firewall script was a 1 shot fix. Many, many thanks.

  6. Great tips on remotely configuring Hyper-V Server.

    I can successfully remotely manage my Hyper-V Server 2012 Core in a workgroup environment. I can also remotely manage the disks on the Hyper-V server.

    I wrote a quick 12-step tutorial (article and video) showing exactly what I did to get this working.

    Hopefully this can help others who found this to be a very frustrating task.


  7. Good you shared this information.

  8. Is everything the same to configure from a licensed windows server 2012 (not 2012 r3) to hyper-v 2012?

  9. Do you mean Windows Server 2012 as a "client" for remote management of a Hyper-v 2012 server? I have not tested this scenario but think it should work the same.

  10. Thanks Michel, this was very helpful!

  11. We are provide best services to windows 7 firewall error and provide a complete solution of your Windows 7 error related , please go through this site.
    windows firewall error 1068 windows 7
    Thank you
    Aalia lyon

  12. I am curious if some of these commands are redundant. Does remote administration also enabled rdp or remote disk management?

  13. How can I enable all the groups in firewall together?
    Please advise. Thanks