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.

Windows - Command-line prompt

Start the WSL Linux.

Copy to Clipboard

Take note of the user account and exit.

WSL - Password recovery

On the Windows command prompt, configure ROOT as the default user account.

Copy to Clipboard

Start the WSL Linux using the ROOT account.

Copy to Clipboard

As ROOT, change the password of your user account.

Copy to Clipboard

Set a new password and exit.

WSL - Password Rest

On the Windows command prompt, change the user account back to the original value.

Copy to Clipboard

In our example, the original user account value was GOHAN.

Start the WSL Linux.

Copy to Clipboard

Test the new password using the SUDO command.

Copy to Clipboard

You learned how to reset the forgotten password of a WSL Linux.