WSL
Install WSL via CLI:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Enable Virtualization Support for WSL2:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Set Default WSL to Ver. 2:
wsl --set-default-version 2
List Installed Distros:
wsl -l [-v]
Set Default Distro:
wsl --set-default $DISTRO
Force Distro to run WSL1:
wsl --set-version $DISTRO 1
Uninstall Distro:
wsl --unregister $DISTRO
Backup a WSL Distro
wsl --export $DISTRO $PATH_TO_BACKUP.tar
Restore a WSL Distro from Backup
wsl --import $DISTRO $INSTALL_DIR $PATH_TO_BACKUP.tar