Hyper-V常用命令
啟動伺服器選單
sconfig
圖形化管理
1.安裝CoreConfig
2.c:\>CoreConfig\Start_Coreconfig.wsf
Hyper-V 2008關閉防火牆方式(預設開啟防火牆)
1.開啟Hyper-V命令視窗
2.c:\> netsh advfirewall set currentprofile state on //開啟防火牆
3.c:\> netsh advfirewall set currentprofile state off //關閉防火牆
設定允許或禁止ping回應
netsh advfirewall firewall add rule name="ICMP Allow incoming IPv4 echo request" protocol=icmpv4:8,any dir=in action=allow //首先建立防火牆規則
netsh advfirewall firewall set rule name="ICMP Allow incoming IPv4 echo request" new enable=yes //允許 ping
netsh advfirewall firewall set rule name="ICMP Allow incoming IPv4 echo request" new enable=no //禁止 ping