Fix PowerShell Login Loop Error 0x80070002 - How to Resolve 'Path Not Found' in Command Prompt-PowerShell DNS Client Error During Setup: Fixes and Workarounds

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