add wsl and wsl2
[webi-installers/.git] / wsl / install.ps1
diff --git a/wsl/install.ps1 b/wsl/install.ps1
new file mode 100644 (file)
index 0000000..ede5da3
--- /dev/null
@@ -0,0 +1,13 @@
+#!/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 ""