Update install-wsl.ps1

This commit is contained in:
Markus Fleschutz 2021-09-19 13:12:25 +02:00
parent fe85c41e09
commit c95f594c29

View File

@ -21,10 +21,13 @@ try {
& wsl --install
} else {
"Step 1/3: Enable WSL..."
& dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
"Step 2/3: Enable virtual machine platform..."
& dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
"Step 3/3: Enable WSL2..."
& wsl --set-default-version 2
}