Fix 'Connection Refused' Error on localhost in CMD - Resolve Error 0xc004f074 with Registry and KMS Settings-Command Prompt Version Error Troubleshooting

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