How do I check if my Windows 10 machine has WSL?
I want to check if my windows 10 machine has WSL?
2 Answers
4 years ago by Divya
You can check using either of the below options:
- Open command prompt and list the registered distributions using the below command
wslconfig /l
- Open powershell as admin,
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
You can find something similar to this, and if the state is enabled then you have WSL.
FeatureName : Microsoft-Windows-Subsystem-Linux
DisplayName : Windows Subsystem for Linux
Description : Provides services and environments for running native user-mode Linux shells and tools on Windows.
RestartRequired : Possible
State : Enabled
CustomProperties :
ServerComponent\Description : Provides services and environments for running native user-mode Linux
shells and tools on Windows.
ServerComponent\DisplayName : Windows Subsystem for Linux
ServerComponent\Id : 1033
ServerComponent\Type : Feature
ServerComponent\UniqueName : Microsoft-Windows-Subsystem-Linux
ServerComponent\Deploys\Update\Name : Microsoft-Windows-Subsystem-Linux
If you don't have, you can enable WSL by following the below steps
- Open Powershell as Adminstrator and run the below command
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Reboot your machine
4 years ago by Jahaan