844 B
844 B
Enable Windows Subsystem for Linux on Windows 10
-
as admin :
dism /online /Enable-Feature /NoRestart /FeatureName:Microsoft-Windows-Subsystem-Linux
-
create AppModelUnlock if it doesn't exist, required for enabling Developer Mode. Sources :
$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
}