The generic command line is :
<distributionfile.exe> config --default-user <username>
You can list all the distribution installed in the Windows Store and with :
wsl --list --all
The ‘distributionfile’ executable can be found in the folder %LocalAppData%\Microsoft\WindowsApps
Microsoft Store | distributionfile |
---|---|
Alpine WSL | Alpine.exe |
Debian | debian.exe |
Ubuntu | ubuntu.exe |
Ubuntu 18.04 LTS | ubuntu1804.exe |
Kali Linux | kali.exe |
openSUZE-Leap-15-1 | SLES-15-SP1.exe |