Fix Windows Defender 'Cannot Connect, Permission Denied' Error - How to Index External Drives in Windows Search-Fixing 504 Gateway Timeout in Scheduled Tasks

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