How to get back a fresh WSL?
I lost my password to run sudo. I have tried to turn the feature off and then turn on again but it get back the old system, not a fresh one. I would like to have a fresh one to start over or someway to get back my password. Is there any way to do this? thanks
In Powershell, lxrun /uninstall and lxrun /install
lxrun.exe /uninstall /full
You can also change your password by changing the default user to root, launching bash, and using the passwd tool.
lxrun.exe /setdefaultuser root
@crvv @benhillis thanks a bunch! it works for me.
Going to close this out since this is covered in our FAQ.