Fixing Task Scheduler Token Expired Sync Issues - Fix Microsoft Teams 502 Bad Gateway Error – Step-by-Step-Troubleshoot PowerShell Credential Failure

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.