EGR007 - Windows Firewall Not Applying Local Rules
Uploading...Agent error code #EGR007 indicates that Windows Defender Firewall on the agent host would not apply a Windows egress knoc's rule. Egress allowlisting on Windows is an outbound Block rule you create, and Windows enforces it only while the firewall is on for the network profile the host is using and nothing tells it to ignore the host's own rules. Validate integration reports this code, because while it holds every account reaches the knoc's destinations.
Grants still work while this is reported: the agent adds and removes each account's exception on the rule as usual. What is missing is the block itself.
Common causes include:
Steps to Resolve
Turn the Firewall On
wf.msc) and select Windows Defender Firewall Properties
On the tab for each profile, set Firewall state to On
Or, from an elevated PowerShell prompt: Set-NetFirewallProfile -Profile Domain,Private,Public -Enabled True
Get-NetFirewallProfile | Select-Object Name, Enabled shows each profile's state, and Get-NetConnectionProfile the profile each network is on.
Check for a Third-Party Firewall
Open Windows Security > Firewall & network protection. If it names another product as the firewall in use, turn that product's firewall off, or fence the destinations with that product instead of an egress knoc.
Let Local Rules Apply
Run gpresult /h gpresult.html and look under Windows Defender Firewall with Advanced Security for Apply local firewall rules. If a policy sets it to No, set it to Yes in that policy, or have the policy deliver the knoc's rule. A rule delivered by Group Policy cannot be changed on the host, so the agent cannot add exceptions to it.