WSL 2 Setup on Windows (10 and 11 only)
Last updated
Last updated
Run the Windows PowerShell as Administrator
Enable WSL by running the command:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Enable the Virtual Machine Platform by running the following command:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart the computer to apply the changes
Install the WSL2 Update package (Note: If you are using Windows 11 skip this step)
Download the WSL2 package.
Run the installer and follow the on-screen instructions.
Open PowerShell as Administrator again
Run the following command to set WSL2 as the default version:
wsl --set-default-version 2
Install from the Microsoft Store.
Click Install and follow the on-screen instructions. (Note: Make sure to keep the set password)
You’re all set, to make sure that you are successfully done you can run the following command:
wsl --list --verbose
You should see this