[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

 

http://www.cryer.co.uk/brian/windows/hyper-v-server/help_disk_management_could_not_start_virtual_disk_service.htm

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

 

posted @ 2019-04-10 10:15  夜歌乘年少  阅读(869)  评论(0编辑  收藏  举报