Fix PowerShell 504 Gateway Timeout Error - Troubleshoot Error 0x80240034 in Remote Desktop Update-Resolve Remote Desktop Group Policy Invalid Configuration

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