Configure proxy server settings (deprecated): registry value ProxyModeComputerHKLM\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_SZComputerUser
Enabled value
Depends on the option value
Element
Configure proxy server settings
Options
ItemStored value
Never use a proxydirect
Auto detect proxy settingsauto_detect
Use a .pac proxy scriptpac_script
Use fixed proxy serversfixed_servers
Use system proxy settingssystem
Apply with .reg · CMD · PowerShell
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
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