How to Break a PowerShell Login Loop - Fixing 504 Gateway Timeout from Windows Update with Proxy-Windows Defender DNS Error Permission Denied Fix

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