Last active
December 1, 2016 15:13
-
-
Save xezpeleta/c253b2cec4df886cefe7030204be9d53 to your computer and use it in GitHub Desktop.
Bash on Windows powershell script (work in progress)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ===================================================================== | |
# Bash on Windows installator | |
# @author: Xabi Ezpeleta <[email protected]> | |
# References: | |
# - https://msdn.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development#use-group-policies-or-registry-keys-to-enable-a-device | |
# - https://msdn.microsoft.com/en-us/commandline/wsl/install_guide | |
# ===================================================================== | |
# Enable Developer Mode | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1" | |
# Enable WSL feature | |
Enable-WindowsOptionalFeature -Online -FeatureName -NoRestart Microsoft-Windows-Subsystem-Linux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment