mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-23 18:38:19 +02:00
Update install-wsl.ps1
This commit is contained in:
parent
fe85c41e09
commit
c95f594c29
@ -21,10 +21,13 @@ try {
|
|||||||
& wsl --install
|
& wsl --install
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
"Step 1/3: Enable WSL..."
|
||||||
& dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
|
& 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
|
& dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
|
||||||
|
|
||||||
|
"Step 3/3: Enable WSL2..."
|
||||||
& wsl --set-default-version 2
|
& wsl --set-default-version 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user