プロキシ サーバーの設定を構成する (非推奨) のレジストリ値 ProxyModeユーザーHKCU\Software\Policies\Microsoft\Edge

ポリシー ID
ProxyMode
適用対象
コンピューターの構成、ユーザーの構成
サポートされるバージョン
Microsoft Edge バージョン 77、Windows 7 以降
出典
Microsoft Edge Policy Templates (バージョン 155.0.4283.45)
カテゴリ
Microsoft Edge › プロキシ サーバー

レジストリ

ProxyMode

REG_SZユーザーコンピューター
…\Software\Policies\Microsoft\EdgeHKCU\Software\Policies\Microsoft\Edge 現在のキー
HKLM\Software\Policies\Microsoft\Edge
有効時の値
オプションの値に依存
要素
プロキシ サーバーの設定を構成する
オプション
項目保存される値
プロキシを使用しないdirect
プロキシの設定を自動的に検出するauto_detect
.pac プロキシ スクリプトを使用するpac_script
固定のプロキシ サーバーを使用するfixed_servers
システム プロキシ設定を使用するsystem
.reg · CMD · PowerShell で適用する
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; 選択項目 (1 つだけ使用)
; プロキシを使用しない
"ProxyMode"="direct"
; プロキシの設定を自動的に検出する
"ProxyMode"="auto_detect"
; .pac プロキシ スクリプトを使用する
"ProxyMode"="pac_script"
; 固定のプロキシ サーバーを使用する
"ProxyMode"="fixed_servers"
; システム プロキシ設定を使用する
"ProxyMode"="system"
CMD
:: 選択項目 (1 つだけ使用)

:: プロキシを使用しない
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "direct" /f
:: プロキシの設定を自動的に検出する
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "auto_detect" /f
:: .pac プロキシ スクリプトを使用する
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "pac_script" /f
:: 固定のプロキシ サーバーを使用する
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "fixed_servers" /f
:: システム プロキシ設定を使用する
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "system" /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# プロキシを使用しない
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'direct' -Force | Out-Null
# プロキシの設定を自動的に検出する
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'auto_detect' -Force | Out-Null
# .pac プロキシ スクリプトを使用する
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'pac_script' -Force | Out-Null
# 固定のプロキシ サーバーを使用する
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'fixed_servers' -Force | Out-Null
# システム プロキシ設定を使用する
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'system' -Force | Out-Null
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; 選択項目 (1 つだけ使用)
; プロキシを使用しない
"ProxyMode"="direct"
; プロキシの設定を自動的に検出する
"ProxyMode"="auto_detect"
; .pac プロキシ スクリプトを使用する
"ProxyMode"="pac_script"
; 固定のプロキシ サーバーを使用する
"ProxyMode"="fixed_servers"
; システム プロキシ設定を使用する
"ProxyMode"="system"
CMD
:: 選択項目 (1 つだけ使用)

:: プロキシを使用しない
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "direct" /f
:: プロキシの設定を自動的に検出する
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "auto_detect" /f
:: .pac プロキシ スクリプトを使用する
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "pac_script" /f
:: 固定のプロキシ サーバーを使用する
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "fixed_servers" /f
:: システム プロキシ設定を使用する
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ProxyMode" /t REG_SZ /d "system" /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# プロキシを使用しない
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'direct' -Force | Out-Null
# プロキシの設定を自動的に検出する
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'auto_detect' -Force | Out-Null
# .pac プロキシ スクリプトを使用する
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'pac_script' -Force | Out-Null
# 固定のプロキシ サーバーを使用する
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'fixed_servers' -Force | Out-Null
# システム プロキシ設定を使用する
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ProxyMode' -PropertyType String -Value 'system' -Force | Out-Null