Unable to fully remote manage Hyper-V Server 2012 R2
-
I have site with 2 Hypert-V 2012 R2 servers. I normally manage everything from a Windows 8.1 based desktop installed in the rack purely for remote management.
All systems are domain joined and I have no problem opening Hyper-V manager form the Windows 8.1 desktop and managing the virtual machines on the two Hyper-V servers.
Today I was trying check a firewall setting on HV02 and when I opened MMC it said it could not connect.
I connected directly to HV02 and tried to issue the following PowerShell command per the MS documentation here.
Enable-NetFirewallRule -DisplayGroup "Remote Administration"
Here was the result. How do I correctly fix this since the MS documentation is obviously wrong?
https://i.imgur.com/i1hYTDZ.jpgForum side note: There was a remotemanagement (all one word) tag that I intentionally did not use.
-
Run Sconfig and enable remote administration from there again.
-
@brianlittlejohn said:
Run Sconfig and enable remote administration from there again.
It is Hyper-V Server sconfig is always running unless you kill it.
That said, it is enabled there and always had been. I have always had this issue with Hyper-V server and had simply forgot about it because I worked around it for the one issue that was impacting me before.
https://i.imgur.com/8Y1DbSj.jpgThat also still does not address the issue as to what is the group name of the firewall rules. They are obviously not all set when you enable remote management or Microsoft's own instructions would not be telling you to enable them.
-
Have you disabled it, then re-enabled it.
-
@brianlittlejohn said:
Have you disabled it, then re-enabled it.
No, and I will not with a good reason to expect it to work. It obviously was not working right before, I do not want prior manual changes disabled that I will then be required to go back and manually again.
-
Found these for 2012R2
Set-NetFirewallRule -DisplayGroup 'Windows Management Instrumentation (WMI)' -Enabled true
Set-NetFirewallRule -DisplayGroup 'Remote Event Log Management' -Enabled true
Set-NetFirewallRule -DisplayName "Windows Firewall Remote Management (RPC)" -Enabled True
Set-NetFirewallRule -DisplayName "Windows Firewall Remote Management (RPC-EPMAP)" -Enabled True -
@brianlittlejohn said:
Found these for 2012R2
Set-NetFirewallRule -DisplayGroup 'Windows Management Instrumentation (WMI)' -Enabled true
Set-NetFirewallRule -DisplayGroup 'Remote Event Log Management' -Enabled true
Set-NetFirewallRule -DisplayName "Windows Firewall Remote Management (RPC)" -Enabled True
Set-NetFirewallRule -DisplayName "Windows Firewall Remote Management (RPC-EPMAP)" -Enabled TrueThis was it.
Set-NetFirewallRule -DisplayName "Windows Firewall Remote Management" -Enabled True
-
Here is a list that seems to work.
Taken from this old tech net post
-
Today I tried to use computer management snap in form one of my DC's to check the status of a Hyper-V server that I racked three months ago.
I apparently forgot to setup remote management that day (not surprising because I was in a hurry to get in and out of the colo).
Well as soon as I got the error, i ran the command I ran above that worked last time. It failed.
Today I had to use the updated commands for Server 2012 R2.
I have a feeling this must have been addressed in a Windows update, but I do not have a Hyper-V system to test on.
-
Also of note, the original command from the first post does still not work.