Task Scheduler Log File Setup and Configuration Guide - Outlook Cannot Connect to IMAP Server Troubleshooting-Troubleshooting 502 Bad Gateway on Windows Terminal

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