Fix Windows Defender Login Loop Using Command Prompt - Windows Update 502 Error: Firewall and Proxy Troubleshooting-PowerShell 504 Gateway Timeout: Diagnosis and Resolution Checklist

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