WSL Version: How to Change WSL Default Version to WSL 2 in Windows 10

To ensure that all future WSL Linux distributions use WSL 2 instead of WSL 1, Open PowerShell as Administrator and run the following command:
wsl --set-default-version 2
You might receive the following error: WSL 2 requires an update to its kernel component
. If that is the case, Install Kernel Updates and run the wsl --set-default-version 2
command again.
For any reason, if you don't want to use Windows Subsystem for Linux 2 as the default version, run the following command:
wsl --set-default-version 1
Also Read: Also Read: How to Convert Existing Linux distributions to use the WSL2.