using wsl install without distro for older versions

This commit is contained in:
Baipyrus 2024-11-25 11:54:14 +01:00
parent 72061fd686
commit cf885e7363

View File

@ -3,7 +3,7 @@ function InstallWSL
# Reference: https://learn.microsoft.com/en-us/windows/wsl/install-manual
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl.exe --update
wsl.exe --install --no-distribution
wsl.exe --set-default-version 2
}