I'm wondering whether anyone in Microsoft has ever come to a situation where they can't remember a rule's name!
The netsh advfirewall firewall show rule
only accepts 1 name and no pattern matching facility is available on netsh to help find a rule using a pattern like "SQL*"
or ^SQL.+$
using show and name=all
it is possible to list all rules but I was unable to find a solid command-line grep tool for windows.
I want to be able to run a command like this:
netsh advfirewall firewall show rule name=sql*
Is this possible?
netsh advfirewall firewall show rule name=all | find "SQL"
; but the output and the control is not as satisfying as it should be. It's rather messy and even worse, Case-Sensitive .../I
withFIND
command, I can dodge the case-sensitive problem; but the result is still messy...