github.com/nilium/gitlab-runner@v12.5.0+incompatible/scripts/vagrant/provision/enable_developer_mode.ps1 (about)

     1  Write-Output "Enable Developer Mode"
     2  
     3  # Create AppModelUnlock if it doesn't exist, required for enabling Developer Mode
     4  $RegistryKeyPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"
     5  if (-not(Test-Path -Path $RegistryKeyPath)) {
     6      New-Item -Path $RegistryKeyPath -ItemType Directory -Force
     7  }
     8  
     9  # Add registry value to enable Developer Mode
    10  New-ItemProperty -Path $RegistryKeyPath -Name AllowDevelopmentWithoutDevLicense -PropertyType DWORD -Value 1