2016-10-14 2 views

Antwort

11

Es stellte sich heraus Nickolaj Andersen geschrieben hat einen Artikel, der gerade solch ein Powershell-Skript enthält ..

http://www.scconfigmgr.com/2016/09/11/enable-ubuntu-in-windows-10-during-osd-with-configmgr/

Hier sind die entsprechenden Zeilen aus seinem Amt ausgezogen:

# Create AppModelUnlock if it doesn't exist, required for enabling Developer Mode 
$RegistryKeyPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" 
if (-not(Test-Path -Path $RegistryKeyPath)) { 
    New-Item -Path $RegistryKeyPath -ItemType Directory -Force 
} 

# Add registry value to enable Developer Mode 
New-ItemProperty -Path $RegistryKeyPath -Name AllowDevelopmentWithoutDevLicense -PropertyType DWORD -Value 1 
+0

Eine zusätzliche Leitung benötigt, um tatsächlich die Funktion zu aktivieren: 'Enable-WindowsOptionalFeature -FeatureName Microsoft-Fenster s-Subsystem-Linux -Online -All -LimitAccess -NoRestart' –

+1

Der obige Registrierungseintrag schlägt fehl, wenn er bereits existiert, besser zu verwenden: 'reg add" HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ AktuelleVersion \ AppModelUnlock "/ t REG_DWO RD/f/v "AllowDevelopmentWithoutDevLicense"/d "1" ' – MortenB

Verwandte Themen