Fix Windows Update Cannot Connect Error – Step-by-Step - Resolve 504 Gateway Timeout in Scheduled Tasks-Windows Security Module Reinstallation 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.