Use it when configuring, checking or troubleshooting Microsoft Defender Firewall in Windows Security.
Microsoft Defender Firewall
Microsoft Defender Firewall is the Windows host firewall for domain, private and public profiles, using application/service, address, port, interface and IPsec-aware rules with local and centrally managed policy precedence.
1. Windows Firewall: Domain, Private, Public profiles.
2. Default block inbound.
3. Manage with GPO/Intune.
4. Log dropped packets.
5. Remove broad allow rules.
packet → profile rules → allow/block
Context & applicabilityCommon mistakes · platform/version boundaries
A Windows Firewall decision shows local enforcement for one flow/profile, but it does not show upstream delivery, process trust or application authorization.
Suspicious evidence: wrong profile, local rule merge, stale GPO/MDM, outbound default misunderstood, service path changed, IPv6 gap or logging disabled.
Operational reference
Fast context before you go deeper.
Get-NetConnectionProfileVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
network category/profile → policy stores/precedence → effective inbound/outbound rule → state/action → socket/application outcome → event and remote evidence
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Firewall service running ≠ intended profile and rules enforced.
- Network firewall permit ≠ Windows host firewall permit.
- Configured or assigned policy ≠ resultant policy and effective runtime state.
- Feature healthy ≠ protected workload or absence of compromise.
Get-NetFirewallProfile | ft Name,Enabled,DefaultInboundAction,LogAllowed,LogBlocked— profilesGet-NetFirewallRule -Enabled True -Direction Inbound | ft DisplayName,Profile,Action— inbound rulesGet-NetConnectionProfile— network category
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A Windows Firewall decision shows local enforcement for one flow/profile, but it does not show upstream delivery, process trust or application authorization.
In depth
Microsoft Defender Firewall is the host firewall in Windows, with separate profiles for domain, private and public networks. It is a key control against lateral movement when configured with default-deny inbound rules.
Get-NetFirewallProfile | Select-Object Name, Enabled, DefaultInboundAction, LogFileName
New-NetFirewallRule -DisplayName 'RDP from admin hosts' -Direction Inbound -Protocol TCP -LocalPort 3389 `
-RemoteAddress 10.0.10.0/24 -Action Allow -Profile Domain
Set-NetFirewallProfile -All -LogBlocked True -LogMaxSizeKilobytes 16384
Manage rules centrally (GPO, Intune), disable local rule merging on managed devices so local admins and malware cannot add exceptions, and block SMB/RDP/WinRM between workstations.
ReferenceConfiguration & state1 section · depth on demand
Commands
Get-NetFirewallProfile | Select Name,Enabled,DefaultInboundAction,DefaultOutboundAction
Get-NetFirewallRule -Enabled True -Direction Inbound | Select DisplayName,Profile,Action
Get-NetConnectionProfile # which profile (Domain/Private/Public) each network uses
A domain network wrongly detected as Public applies stricter rules (check NLA and DC reachability). Enable logging of dropped packets for troubleshooting (%systemroot%\system32\LogFiles\Firewall\pfirewall.log).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Windows Security → Microsoft Defender Firewall. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/security/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Windows Security → Microsoft Defender Firewall proof map
Fast scope, effective-state, runtime-evidence and closure boundaries for Windows Security → Microsoft Defender Firewall.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope | Exact host, role, build/kernel, identity, workload and expected control | Does not prove policy receipt or effective runtime state |
| Effective state | Resultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controls | Configuration presence does not prove enforcement |
| Runtime evidence | Correlated events/audit, process/token/credential, packet/syscall and workload result | One event, clean status or allow/deny does not prove complete security |
| Closure | Original allowed/denied workload works, unsafe state is removed and recovery/regression pass | Commit, restart, block or compliance result alone is not closure |