查看

Get-NetFirewallRule

新增 (連入)

New-NetFirewallRule -DisplayName "allow_80" -Direction Inbound -LocalPort 80 -Protocol TCP -Action Allow