provide additional user feedback with consistent style

This commit is contained in:
Baipyrus 2024-11-25 12:00:30 +01:00
parent 0da955a90d
commit 7aa94ca8e2
2 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,9 @@
function InstallWSL function InstallWSL
{ {
# Reference: https://learn.microsoft.com/en-us/windows/wsl/install-manual Write-Host "Enabling and downloading required Windows Features..."
Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart | Out-Null
Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All -NoRestart Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All -NoRestart | Out-Null
Write-Host "Installing WSL2..."
wsl.exe --install --no-distribution wsl.exe --install --no-distribution
wsl.exe --set-default-version 2 wsl.exe --set-default-version 2
} }