Would you like to learn how to create a remote process using WMI? This tutorial will show you how to reset the Linux password in WSL.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11
Equipment list
Here you can find the list of equipment used to create this tutorial.
This link will also show the software list used to create this tutorial.
Windows Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Windows.
Tutorial – Reset the WSL Linux password on Windows
Start a command-line prompt.
Start the WSL Linux.
Take note of the user account and exit.
On the Windows command prompt, configure ROOT as the default user account.
Start the WSL Linux using the ROOT account.
As ROOT, change the password of your user account.
Set a new password and exit.
On the Windows command prompt, change the user account back to the original value.
In our example, the original user account value was GOHAN.
Start the WSL Linux.
Test the new password using the SUDO command.
You learned how to reset the forgotten password of a WSL Linux.