Open a PowerShell window with administrator privileges and type the following command and press Enter:
wsl --status
This should show information about your WSL installation, including the default version (WSL 1 or WSL 2) and any registered Linux distributions. If it says "WSL is not enabled" or there's no output, the feature might not be installed correctly.
If the wsl --status
command didn't show any information, try re-enabling WSL:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
This will download and install the necessary components again. Restart your computer after it finishes.