[Windows Hyper-V-Server]Enable or disable firewall rules under powershell / powershell下启用禁用防火墙规则
http://www.cryer.co.uk/brian/windows/hyper-v-server/help_computer_cannot_be_managed.htm
Enable COM+ Network Access(DCOM-in) and all rules of Remote Event log Management to use Computer Management remotely:
#在HyperV主机上,执行下列命令/ do this on HyperV server: netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new enable=yes netsh advfirewall firewall set rule group="Remote Event Log Management" new enable=yes #或者powershell下 / powershell Set-NetFirewallRule -DisplayGroup 'Windows Management Instrumentation (WMI)' -Enabled true -PassThru Set-NetFirewallRule -DisplayGroup 'Remote Event Log Management' -Enabled true -PassThru
TO use Disk management remotely:
#powershell on both HyperVserver and AD DS server: netsh advfirewall firewall set rule group="Remote Volume Management" new enable=yes