Configure Proxy Settings for Windows Update - Resolve 504 Gateway Timeout When Running PowerShell in IIS-How to Fix a Stuck Windows Update Cache That Won't Clear

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