# Enumerate

<table data-header-hidden data-full-width="true"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:yellow;"><code>Get-NetFirewallProfile</code></mark></td><td>Config of all firewall profiles (Domain, Private, and Public)</td></tr><tr><td><mark style="color:yellow;"><code>Get-NetFirewallRule</code></mark></td><td>Gets all the inbound and outbound rules configured in the Windows Firewall</td></tr><tr><td><mark style="color:yellow;"><code>Get-NetFirewallSetting</code></mark></td><td>Retrieves the global settings of the Windows Firewall</td></tr><tr><td><mark style="color:yellow;"><code>Get-NetFirewallProfile -PolicyStore ActiveStore</code></mark></td><td>Retrieves config of all active firewall profiles directly from the currently applied policy store</td></tr><tr><td><mark style="color:yellow;"><code>netsh advfirewall firewall show rule name=all</code></mark></td><td>View firewall configuration</td></tr><tr><td><mark style="color:yellow;"><code>netsh advfirewall show currentprofile</code></mark></td><td>Show which profiles are active</td></tr><tr><td><mark style="color:yellow;"><code>netsh advfirewall show allprofiles</code></mark></td><td>Shows the configuration of all firewall profiles (Domain, Private, and Public).</td></tr><tr><td><mark style="color:yellow;"><code>netsh advfirewall firewall show rule profile=private name=all</code></mark></td><td>All Private Profile rules.</td></tr><tr><td><mark style="color:yellow;"><code>netsh advfirewall firewall show rule profile=public name=all</code></mark></td><td>All Public Profile rules.</td></tr><tr><td><mark style="color:yellow;"><code>netsh advfirewall firewall show rule profile=domain name=all</code></mark></td><td>All Domain Profile rules.</td></tr><tr><td><mark style="color:yellow;"><code>netsh advfirewall firewall show rule name=all</code></mark></td><td>Lists all inbound and outbound rules</td></tr><tr><td><mark style="color:yellow;"><code>netsh advfirewall firewall show rule name="&#x3C;RuleName>"</code></mark></td><td>Confirm if rule exists</td></tr><tr><td><mark style="color:yellow;"><code>netsh advfirewall monitor show firewall</code></mark></td><td>Shows the current operational state and statistics of the firewall using netsh.</td></tr><tr><td><mark style="color:yellow;"><code>netsh firewall show config</code></mark></td><td>Shows the configuration of the Windows Firewall for older versions of Windows</td></tr><tr><td><mark style="color:yellow;"><code>netsh advfirewall firewall show rule group="Windows Defender Firewall" verbose</code></mark></td><td>Lists the rules associated with the Windows Defender Firewall group</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.shellspells.net/windows/system-ops/security/firewall/enumerate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
