選擇如何指定 Proxy 伺服器設定 的登錄值 ProxyMode (HKLM Chrome)電腦HKLM\Software\Policies\Google\Chrome
- 原則 ID
- ProxyMode
- 適用範圍
- 電腦設定、使用者設定
- 支援的作業系統
- Microsoft Windows 7 以上版本
- 來源
- Google Chrome Policy Templates (版本 156.0.8078.80)
- 類別
- Google › Google Chrome › 已淘汰的政策
登錄
ProxyMode
REG_SZ電腦使用者…\Software\Policies\Google\ChromeHKLM\Software\Policies\Google\Chrome 目前的機碼
HKCU\Software\Policies\Google\Chrome
HKCU\Software\Policies\Google\Chrome
- 啟用時的值
- 取決於選項值
- 元素
- 選擇如何指定 Proxy 伺服器設定
| 項目 | 儲存的值 |
|---|---|
| 永不使用 Proxy | direct |
| 自動偵測 Proxy 設定 | auto_detect |
| 使用 .pac Proxy 指令碼 | pac_script |
| 使用固定的 Proxy 伺服器 | fixed_servers |
| 使用系統 Proxy 設定 | system |
以 .reg · CMD · PowerShell 套用
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome] ; 選項 (只使用其中一個) ; 永不使用 Proxy "ProxyMode"="direct" ; 自動偵測 Proxy 設定 "ProxyMode"="auto_detect" ; 使用 .pac Proxy 指令碼 "ProxyMode"="pac_script" ; 使用固定的 Proxy 伺服器 "ProxyMode"="fixed_servers" ; 使用系統 Proxy 設定 "ProxyMode"="system"
CMD
:: 選項 (只使用其中一個) :: 永不使用 Proxy reg add "HKLM\Software\Policies\Google\Chrome" /v "ProxyMode" /t REG_SZ /d "direct" /f :: 自動偵測 Proxy 設定 reg add "HKLM\Software\Policies\Google\Chrome" /v "ProxyMode" /t REG_SZ /d "auto_detect" /f :: 使用 .pac Proxy 指令碼 reg add "HKLM\Software\Policies\Google\Chrome" /v "ProxyMode" /t REG_SZ /d "pac_script" /f :: 使用固定的 Proxy 伺服器 reg add "HKLM\Software\Policies\Google\Chrome" /v "ProxyMode" /t REG_SZ /d "fixed_servers" /f :: 使用系統 Proxy 設定 reg add "HKLM\Software\Policies\Google\Chrome" /v "ProxyMode" /t REG_SZ /d "system" /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null # 選項 (只使用其中一個) # 永不使用 Proxy New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'ProxyMode' -PropertyType String -Value 'direct' -Force | Out-Null # 自動偵測 Proxy 設定 New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'ProxyMode' -PropertyType String -Value 'auto_detect' -Force | Out-Null # 使用 .pac Proxy 指令碼 New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'ProxyMode' -PropertyType String -Value 'pac_script' -Force | Out-Null # 使用固定的 Proxy 伺服器 New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'ProxyMode' -PropertyType String -Value 'fixed_servers' -Force | Out-Null # 使用系統 Proxy 設定 New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'ProxyMode' -PropertyType String -Value 'system' -Force | Out-Null
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Google\Chrome] ; 選項 (只使用其中一個) ; 永不使用 Proxy "ProxyMode"="direct" ; 自動偵測 Proxy 設定 "ProxyMode"="auto_detect" ; 使用 .pac Proxy 指令碼 "ProxyMode"="pac_script" ; 使用固定的 Proxy 伺服器 "ProxyMode"="fixed_servers" ; 使用系統 Proxy 設定 "ProxyMode"="system"
CMD
:: 選項 (只使用其中一個) :: 永不使用 Proxy reg add "HKCU\Software\Policies\Google\Chrome" /v "ProxyMode" /t REG_SZ /d "direct" /f :: 自動偵測 Proxy 設定 reg add "HKCU\Software\Policies\Google\Chrome" /v "ProxyMode" /t REG_SZ /d "auto_detect" /f :: 使用 .pac Proxy 指令碼 reg add "HKCU\Software\Policies\Google\Chrome" /v "ProxyMode" /t REG_SZ /d "pac_script" /f :: 使用固定的 Proxy 伺服器 reg add "HKCU\Software\Policies\Google\Chrome" /v "ProxyMode" /t REG_SZ /d "fixed_servers" /f :: 使用系統 Proxy 設定 reg add "HKCU\Software\Policies\Google\Chrome" /v "ProxyMode" /t REG_SZ /d "system" /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null # 選項 (只使用其中一個) # 永不使用 Proxy New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'ProxyMode' -PropertyType String -Value 'direct' -Force | Out-Null # 自動偵測 Proxy 設定 New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'ProxyMode' -PropertyType String -Value 'auto_detect' -Force | Out-Null # 使用 .pac Proxy 指令碼 New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'ProxyMode' -PropertyType String -Value 'pac_script' -Force | Out-Null # 使用固定的 Proxy 伺服器 New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'ProxyMode' -PropertyType String -Value 'fixed_servers' -Force | Out-Null # 使用系統 Proxy 設定 New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'ProxyMode' -PropertyType String -Value 'system' -Force | Out-Null