mirror of
https://github.com/vale981/ray
synced 2025-03-14 07:06:38 -04:00
13 lines
769 B
PowerShell
13 lines
769 B
PowerShell
################################################################################
|
|
## File: Enable-DeveloperMode.ps1
|
|
## Desc: Enables Developer Mode by toggling registry setting. Developer Mode is required to enable certain tools (e.g. WinAppDriver).
|
|
################################################################################
|
|
|
|
# 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
|