Guest User

Untitled

a guest
Jun 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # Resets the password for the default LXSS / WSL bash user
  2. $lxssUsername = (Get-ItemProperty HKCU:SOFTWAREMicrosoftWindowsCurrentVersionLxss).DefaultUsername
  3. lxrun /setdefaultuser root
  4. bash -c "passwd $lxssUsername"
  5. lxrun /setdefaultuser $lxssUsername
  6.  
  7. lxrun /uninstall /full
  8.  
  9. lxrun /install
Add Comment
Please, Sign In to add comment