Reset the password in Ubuntu for Windows WSL

In Windows admin command prompt (Super+XA) change the default user to root:

ubuntu config --default-user root

Use passwd command in Bash to change the user password (the user whose password you want to reset):

passwd your_username

Change the default user back to your normal user in Windows command prompt

ubuntu config --default-user your_username

Comments