Resolve 502 Bad Gateway Using Command Line Tools - Remote Desktop 0x104 Connection Failure Guide-How to Debug Task Scheduler Failures

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