Fix Remote Desktop Connection Settings Reset Error 0x4 - Resolve Java JDK Not Recognized in Android Studio-Resolve PowerShell 504 Gateway Timeout on Windows Server

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