In WSL2 Console, create /etc/wsl.conf with this contents: 1[user] 2default=username Then in powershell (administrator): 1wsl --shutdown Reopen terminal and make sure default user is now changed. Reference: https://superuser.com/questions/1566022/how-to-set-default-user-for-manually-installed-wsl-distro
Read MoreLinux systemcmd or init way of rebooting will not work in a Windows Subsystem for Linux or wsl-run Linux. You need to use the Powershell command below: 1wsl --shutdown For other methods, see this article.
Read More