Skip to content

Instantly share code, notes, and snippets.

@xezpeleta
Last active December 1, 2016 15:13
Show Gist options
  • Save xezpeleta/c253b2cec4df886cefe7030204be9d53 to your computer and use it in GitHub Desktop.
Save xezpeleta/c253b2cec4df886cefe7030204be9d53 to your computer and use it in GitHub Desktop.
Bash on Windows powershell script (work in progress)
# =====================================================================
# 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