Fix Task Scheduler 504 Gateway Timeout Sync Issues - How to Schedule a Script with Task Scheduler-Microsoft Teams Connection Timeout: Troubleshooting Checklist

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