How to Enable Windows Defender in Windows 10 - Windows Update 502 Bad Gateway: Quick Troubleshooting Checklist-Task Scheduler Dependency Conflict: Step-by-Step Troubleshooting

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