Fix PowerShell Connection Refused to Remote Server - Fix 502 Bad Gateway When Searching in Windows-Identify Application Blocking Remote Desktop Port

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