使用powershell下firewall policy

 

參考:https://technet.microsoft.com/zh-tw/library/jj554908(v=wps.630).aspx

New-NetFirewallRule -DisplayName "test" -direction Inbound -Protocol tcp -RemoteAddress 192.168.99.254 -RemotePort any -LocalAddress any -LocalPort 3389

 

Facebook Comments Box

Leave a Reply