Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reset-BashPassword.ps1
# Resets the password for the default LXSS / WSL bash user, based on https://askubuntu.com/a/808425/697555
$lxssUsername = (Get-ItemProperty HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss).DefaultUsername
lxrun /setdefaultuser root
bash -c "passwd $lxssUsername"
lxrun /setdefaultuser $lxssUsername
@nitinjs

This comment has been minimized.

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
You can’t perform that action at this time.