[Windows Hyper-V-Server]Enable disable firewall rules under powershell / powershell下启用禁用防火墙规则

Posted 夜歌乘年少

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Windows Hyper-V-Server]Enable 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

 

以上是关于[Windows Hyper-V-Server]Enable disable firewall rules under powershell / powershell下启用禁用防火墙规则的主要内容,如果未能解决你的问题,请参考以下文章

linux mint 自动挂载windows的D盘和E盘

百科知识 什么是Windows P E

linux mint 自动挂载windows的D盘和E盘

Windows利用文件夹映射来同步文件

Windows 10 (multi-edition) VL 和 Windows 10 (multi-edition) 具体区别!

windows CMD下的命令