bookmarks/cheat/windows-subsystem.md
2018-03-14 08:07:47 +01:00

844 B

Enable Windows Subsystem for Linux on Windows 10

$registryUpdates = @{
    "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\AllowDevelopmentWithoutDevLicense" = 1
}
$registryUpdates.GetEnumerator() | ForEach-Object {
    & reg add (Split-Path -Parent $_.Key) /v (Split-Path -Leaf $_.Key) /t REG_DWORD /d $_.Value /f | Out-Null
}