PowerShell Migration Sync Issue Troubleshooting Guide - Troubleshoot Error 0x80070002 in Windows Update-Remote Desktop 502 Bad Gateway Firewall Troubleshooting

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