Windows Update Stuck on Checking for Updates? Try These Fixes - Windows Defender 502 Bad Gateway: Configuration and Troubleshooting-How to Unrestrict PowerShell Execution Policy

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