mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-11 16:39:10 +01:00
Update install-wsl.ps1
This commit is contained in:
parent
fe85c41e09
commit
c95f594c29
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user