Clear Windows Defender Cache via Command Line - Windows Security 502 Bad Gateway: Quick Fixes-Fix 'Connection Refused' When Pinging a Remote Host

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.