Fix PowerShell 504 Gateway Timeout on Windows Server - Remote Desktop Connection Timeout: RDP Port 3389 Not Working-How to Fix Microsoft Teams Failed to Start Error

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