Fix 'File Locked by Windows Security Cannot Delete' - Command Line Remote Desktop Service Restart-Troubleshoot PowerShell 502 Bad Gateway with Proxy

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