Repair PowerShell Installation Using DISM: Step-by-Step Guide - Resolve 502 Bad Gateway in Command Prompt Proxy-Remote Desktop Port Conflict Error 0x80004005

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