Warning
Use an administrator account for these steps, and keep a recent backup before making repair or security changes.
What you will achieve
Run Linux tools on Windows with WSL2 — the supported Microsoft path for dev and admin tasks.
1) Install from elevated PowerShell
Run:
wsl --install
wsl --set-default-version 2
2) Reboot and complete distro setup
- Restart when prompted.
- On first distro launch, create Linux username/password.
3) Verify WSL status
wsl --status
wsl -l -v