Ashley Southworth
Ashley Southworth

Reputation: 141

wsl still not recognized after enabled in dism

I apologize if this was posted, I did go through a number of posts first.

I am attempting to run a linux VM on my desktop using WSL 2, however I continuously get the error: "'wsl' is not recognized as an internal or external command, operable program or batch file."

I have enabled it multiple times using the command dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart in an elevated CMD.

Note: I am using the Microsoft Insiders Dev mode on my computer. I configured it today and did restart to settle the update.

Upvotes: 4

Views: 11072

Answers (1)

Simran Singh
Simran Singh

Reputation: 2869

It seems like you need to enable wsl from Windows Features.

Click Windows > Search "Turn Windows features on or off" > Open the list of features > Select "Windows Subsystem for Linux", enable it and restart

It is recommended to enable "Virtual Machine Platform" and "Hyper-V" as well. Please refer to the image below.enter image description here

Upvotes: 9

Related Questions