mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
14 lines
493 B
PowerShell
14 lines
493 B
PowerShell
#!/usr/bin/env pwsh
|
|
|
|
Write-Output "Installing WSL (Windows Subsystem for Linux) ..."
|
|
Write-Output ""
|
|
Write-Output "Security: requires administrator approval to install"
|
|
|
|
powershell -Command "Start-Process cmd -Verb RunAs -ArgumentList '/c cd /d %CD% && dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all'"
|
|
# /norestart
|
|
|
|
Write-Output "!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
Write-Output "!!! Reboot REQUIRED !!!"
|
|
Write-Output "!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
Write-Output ""
|