-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.bat
17 lines (13 loc) · 928 Bytes
/
install.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@ECHO off
ECHO Bootstrapping WSL environment for user: %USERNAME%
ECHO Allowing Sideloading of Apps...
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /v "AllowAllTrustedApps"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowAllTrustedApps" /d "1"
ECHO Putting machine into Developer Mode...
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /v "AllowDevelopmentWithoutDevLicense"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
ECHO Turning on WSL...
dism /online /get-featureinfo /featurename:Microsoft-Windows-Subsystem-Linux
dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux
ECHO Building WSL environment...
lxrun /install /y