How to Fix Windows Defender Scanning Taking Too Long - Fixing Windows Security 502 Bad Gateway Errors-Fix Permission Denied When Updating Windows Store Apps

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