Fix Windows Update Error 504 Gateway Timeout - Windows Update Connection Refused: Troubleshooting Checklist-Troubleshooting Windows Security Invalid Configuration

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.