PowerShell Migration Sync Issue Troubleshooting Guide - How to Fix Command Prompt Connection Refused Error-PowerShell 502 Bad Gateway Fix Checklist

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