For the Windows Hyper-V Server 2012 (=core)
- Enable remote config (sconfig.cmd option 4)
- Add a local administrator (sconfig.cmd option 3)
- with same username and password as you are using on the Windows 8 Client
- with other username and password (on client you need to use
cmdkey /add:<ServerName> /user:<UserName> /pass:<password>
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
- Install Hyper-V Client Tools using "Turn Windows Feature on or off" (win-Q, search on "control panel", etc.)
- Start component services config (win-Q, search on "DCOMCNFG", right click and select "Run as administrator"
- Select "Console Root > Component Services > Computers > My Computer"
- Right click and select properties
- Select the tab "COM Security"
- Click on "Edit Limits" for the Access Permissions
- Allow remote access by setting the checkmark for the "ANONYMOUS LOGON"
Tested this on the RC version of both server and client.
Excellent - just what I needed to get going. Thanks
ReplyDeleteThanks.
ReplyDeleteI 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.
I get "RPC server unavailable. Unable to establish communication between server and My PC"
ReplyDeleteAny idea why? I have followed the procedure above...
Thanks
Looks like firewall issue :
DeleteDid 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.
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...
DeleteHi 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%
DeleteThanks for the help!
What was the connection setting for the VM running Win8? Was it Bridged, NAT or Host-only?
DeleteUsing a bridged connection should be fine (is like connecting machine directly to your LAN).
Yes it was set to NAT.
ReplyDeleteAnyway 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.
Does Not Work over NAT
Deletehttps://support.microsoft.com/en-us/kb/248809
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.
ReplyDeleteGreat tips on remotely configuring Hyper-V Server.
ReplyDeleteI 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.
http://pc-addicts.com/12-steps-to-remotely-manage-hyper-v-server-2012-core
Hopefully this can help others who found this to be a very frustrating task.
-Chris
http://PC-Addicts.com
Good you shared this information.
ReplyDeleteIs everything the same to configure from a licensed windows server 2012 (not 2012 r3) to hyper-v 2012?
ReplyDeleteDo 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.
ReplyDeleteThanks Michel, this was very helpful!
ReplyDeleteWe 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.
ReplyDeletewindows firewall error 1068 windows 7
Thank you
Aalia lyon
I am curious if some of these commands are redundant. Does remote administration also enabled rdp or remote disk management?
ReplyDeleteHow can I enable all the groups in firewall together?
ReplyDeletePlease advise. Thanks