Forgot WSL password?
May 16, 2021
No worries, you can easily reset it with simple 5 steps!
- Open a command prompt
- Change the default user of WSL to root and run .exe file of that distro
<distro name> config — default-user root
<distro name>
3. Change your password
passwd <username>
4. Logout from the WSL distro
exit
5. Change the default user
<distro name> config — default-user <username>
Hope you find it useful. Have a nice day! :)