English-only support.
This Event ID 2042 entry from Microsoft-Windows-Windows Firewall With Advanced Security with:
- Config/SettingType: 18
- Error: Access is denied
matches a known issue reported after recent Windows updates. In that scenario, it is a startup logging glitch in the firewall service, not an actual firewall failure, and it can be safely ignored if Windows Defender Firewall is otherwise working normally.
Useful checks:
- Open Windows Security.
- Go to Firewall & network protection.
- Confirm the firewall profiles show as On.
What not to do:
- Do not reset the firewall just to clear this event.
- Do not uninstall security updates only to remove the log entry, because that would remove security fixes.
The recommended action is to keep Windows Update enabled and wait for a later cumulative update to correct the logging behavior.