chore(style): convert blocks into functions (see #325)
[webi-installers/.git] / wsl.bak / install.ps1
1 #!/usr/bin/env pwsh
2
3 curl.exe -s "https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi" -o "$Env:USERPROFILE\Downloads\webi\wsl_update_x64.msi"
4 msiexec /a "$Env:USERPROFILE\Downloads\webi\wsl_update_x64.msi" /qb TARGETDIR="C:\temp"
5 copy C:\temp\System32\lxss\tools\kernel C:\Windows\System32\lxss\tools\
6
7 dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
8 dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
9
10 Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
11
12 wsl --set-default-version 2
13
14 # TODO
15 #Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true