M
M
maxtar2016-02-02 17:02:03
PowerShell
maxtar, 2016-02-02 17:02:03

How to get a list of open Windows Firewall ports on a local machine?

I'm looking for an analogue of netstat -a but displaying only ports open on the firewall.
And I remember exactly that there was such a command (cmd or ps - I don’t remember), but due to some kind of brain buffer overflow I forgot.
UPD: I'm not interested in listing the rules, thanks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2016-02-02
@res2001

netsh advfirewall firewall show rule name=all dir=in verbose
In general, netsh has its own command mode, there is detailed help for each command.

O
oia, 2016-02-02
@oia

netsh dump

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question