Fix PowerShell 504 Gateway Timeout When Calling REST API - Remote Desktop Configuration File Locked – Troubleshooting Guide-PowerShell Offline Install Error: Configuration Troubleshooting

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