Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Resets the password for the default LXSS / WSL bash user, based on
$lxssUsername = (Get-ItemProperty HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss).DefaultUsername
lxrun /setdefaultuser root
bash -c "passwd $lxssUsername"
lxrun /setdefaultuser $lxssUsername
Copy link

nitinjs commented Mar 5, 2019

getting E r r o r : 0 x 8 0 0 7 0 0 0 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment