How to get non-default Windows Firewall rules in PowerShell?

367 Views Asked by At

I've tried using Get-NetFirewallRule | fl * to see if I can tell the difference between Windows Firewall rules that were created by 3rd party programs vs rules that are native and present by default in Windows Firewall, but I couldn't.

Is there any command, script or .NET method that can do that? want to list all non-native ones.

The only difference I can see between Windows built-in Firewall rules and Firewall rules created by 3rd party programs is that Windows built-in rules always have Group names and are placed in groups, but 3rd party Firewall rules don't have groups, of course they can have groups too but so far, at least on my computer, they don't. looking for a more concrete identifier though.

Update: another Identifier I can see is that in the "Program" section of all Windows built-in Firewall things like this exist:

  1. %SystemRoot%\*
  2. System
  3. SYSTEM

Although I haven't figured out how I can use that. I'm not sure if 3rd party Firewall rules can use system or SYSTEM too or what program system even is exactly.

0

There are 0 best solutions below