Fix Windows Update 502 Bad Gateway After Update - How to Resolve Task Scheduler 504 Timeout-Remote Desktop Logon Error Troubleshooting Guide

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