Configure proxy server settings (deprecated): registry value ProxyModeUserHKCU\Software\Policies\Microsoft\Edge
- Policy ID
- ProxyMode
- Scope
- Computer Configuration, User Configuration
- Supported on
- Microsoft Edge version 77, Windows 7 or later
- Source
- Microsoft Edge Policy Templates (version 155.0.4283.45)
- Category
- Microsoft Edge › Proxy server
Registry
ProxyMode
REG_SZUserComputer…\Software\Policies\Microsoft\EdgeHKCU\Software\Policies\Microsoft\Edge Current key
HKLM\Software\Policies\Microsoft\Edge
HKLM\Software\Policies\Microsoft\Edge
- Enabled value
- Depends on the option value
- Element
- Configure proxy server settings
| Item | Stored value |
|---|---|
| Never use a proxy | direct |
| Auto detect proxy settings | auto_detect |
| Use a .pac proxy script | pac_script |
| Use fixed proxy servers | fixed_servers |
| Use system proxy settings | system |
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge] ; Options (use only one) ; Never use a proxy "ProxyMode"="direct" ; Auto detect proxy settings "ProxyMode"="auto_detect" ; Use a .pac proxy script "ProxyMode"="pac_script" ; Use fixed proxy servers "ProxyMode"="fixed_servers" ; Use system proxy settings "ProxyMode"="system"
CMD
:: Options (use only one) :: Never use a proxy reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "direct" /f :: Auto detect proxy settings reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "auto_detect" /f :: Use a .pac proxy script reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "pac_script" /f :: Use fixed proxy servers reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "fixed_servers" /f :: Use system proxy settings reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "system" /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null # Options (use only one) # Never use a proxy New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'direct' -Force | Out-Null # Auto detect proxy settings New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'auto_detect' -Force | Out-Null # Use a .pac proxy script New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'pac_script' -Force | Out-Null # Use fixed proxy servers New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'fixed_servers' -Force | Out-Null # Use system proxy settings New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'system' -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge] ; Options (use only one) ; Never use a proxy "ProxyMode"="direct" ; Auto detect proxy settings "ProxyMode"="auto_detect" ; Use a .pac proxy script "ProxyMode"="pac_script" ; Use fixed proxy servers "ProxyMode"="fixed_servers" ; Use system proxy settings "ProxyMode"="system"
CMD
:: Options (use only one) :: Never use a proxy reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "direct" /f :: Auto detect proxy settings reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "auto_detect" /f :: Use a .pac proxy script reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "pac_script" /f :: Use fixed proxy servers reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "fixed_servers" /f :: Use system proxy settings reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "system" /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null # Options (use only one) # Never use a proxy New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'direct' -Force | Out-Null # Auto detect proxy settings New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'auto_detect' -Force | Out-Null # Use a .pac proxy script New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'pac_script' -Force | Out-Null # Use fixed proxy servers New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'fixed_servers' -Force | Out-Null # Use system proxy settings New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'system' -Force | Out-Null