mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-03 01:40:17 +00:00
14 lines
437 B
PowerShell
14 lines
437 B
PowerShell
#!/usr/bin/env pwsh
|
|
|
|
echo "Installing WSL (Windows Subsystem for Linux) ..."
|
|
echo ""
|
|
echo "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
|
|
|
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
echo "!!! Reboot REQUIRED !!!"
|
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
echo ""
|