Windows Defender 502 Bad Gateway: Troubleshooting Checklist - Troubleshoot Windows Update Hanging Issues-Troubleshoot Windows Update Command Failures Windows 10

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.