Hi
Make sure the Feature wasnt desactivated. I know the upgrade to Windows 11 often remove it, but it's maybe such case in your scenario.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dear Experts,
We are running a lot of Windows 10 Pro Education, originally with 2004 version then all are upgraded to 21H1 Build 19043. This should meet the requirement for wsl2 but when I tried to run wsl commands, it was not found under C:\windows\system32, no such wsl.exe file is there. I could see it from Windows 11 though.
What am I missing?
Hi
Make sure the Feature wasnt desactivated. I know the upgrade to Windows 11 often remove it, but it's maybe such case in your scenario.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Hi @Eaven HUANG
WSL2 is a feature of Windows 10, version 1903 or later, so your system should support it. First, make sure that the WSL feature is enabled. You can do this by following these steps:
If you have enabled WSL features, try running the following command in PowerShell to install WSL 2:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
After the installation is complete, download and install a Linux distribution for WSL 2, such as Ubuntu, Debian, or Kali Linux, in the Microsoft Store.
If you still can't find the wsl .exe file, try running the following command in PowerShell to update Windows 10:
sfc /scannow
Hope it helps.
Kind regards,
Lei