Windows Defender 502 Bad Gateway: Troubleshooting Checklist - How to Increase OneDrive Sync Timeout-Fix PowerShell Authentication Token Expired in Automation Scripts

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