1 2 |
$firewall = New-object -ComObject HNetCfg.FwPolicy2 $firewall.Rules | Where-Object {$_.enabled -eq 1 -and $_.Action -eq 1 -and $_.Direction -eq 2} | Select-Object Name,LocalPorts | sort name |
1 2 |
$firewall = New-object -ComObject HNetCfg.FwPolicy2 $firewall.Rules | Where-Object {$_.enabled -eq 1 -and $_.Action -eq 1 -and $_.Direction -eq 2} | Select-Object Name,LocalPorts | sort name |