Old command to show ports opening in netsh is:
netsh firewall show portopening
For Windows OSes which uses Advance Firewall the above
command may not work anymore.
PowerShell of course can get the list of ports used by
Windows advance firewall with security.
The link below shows on how to use PowerShell to query
advance firewall:
If a program or application utilizes a specific port and is not open or not being set on the firewall then the particular program or application may not be accessible remotely.
If command line is preferable, netsh is able to get or list
the ports used by the firewall.
netsh advfirewall firewall show rule name=all verbose | findstr "LocalPort:"
Sample output for the command above:
LocalPort: 3540
LocalPort: Any
LocalPort: 1900
LocalPort: Any
LocalPort: RPC
LocalPort: 445
LocalPort: RPC-EPMap
LocalPort: RPC
LocalPort: 445
LocalPort: RPC-EPMap
LocalPort: RPC
LocalPort: RPC-EPMap
LocalPort: RPC
LocalPort: RPC-EPMap
LocalPort: 5985
LocalPort: 5985
LocalPort: 80
LocalPort: 80
LocalPort: RPC
LocalPort: RPC-EPMap
LocalPort: RPC
LocalPort: RPC-EPMap
LocalPort: 1701
LocalPort: Any
LocalPort: 1723
Check out link below for more Netsh commands or click the labels below:
https://support.microsoft.com/en-us/kb/947709
Comments
Post a Comment