設定 HTTP Proxy 的登錄值 ProxyPolicy 等 5 個使用者HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP
- 原則 ID
- ConfigureHTTPProxySettings
- 適用範圍
- 使用者設定
- 支援的作業系統
- Windows Media Player for Windows XP 和更新版本。
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- Windows 元件 › Windows Media Player › 網路功能
登錄
ProxyPolicy
REG_DWORD使用者- 啟用時的值
- 1
- 停用時的值
- 0
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP] ; 選項 (只使用其中一個) ; 已啟用 "ProxyPolicy"=dword:00000001 ; 已停用 "ProxyPolicy"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已啟用 reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "ProxyPolicy" /t REG_DWORD /d 1 /f :: 已停用 reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "ProxyPolicy" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Force | Out-Null # 選項 (只使用其中一個) # 已啟用 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'ProxyPolicy' -PropertyType DWord -Value 1 -Force | Out-Null # 已停用 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'ProxyPolicy' -PropertyType DWord -Value 0 -Force | Out-Null
ProxyType
REG_DWORD使用者- 啟用時的值
- 取決於選項值
- 元素
- Proxy 類型
| 項目 | 儲存的值 |
|---|---|
| 自動偵測 | 3 Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP\AutodetectProxy = 1 Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP\UseProxy = (刪除值) Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP\UseBrowserProxy = (刪除值) |
| 自訂 | 2 Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP\UseProxy = 1 Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP\AutodetectProxy = (刪除值) Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP\UseBrowserProxy = (刪除值) |
| 使用瀏覽器 Proxy 設定 | 1 Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP\UseBrowserProxy = 1 Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP\AutodetectProxy = (刪除值) Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP\UseProxy = (刪除值) |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP] ; 選項 (只使用其中一個) ; 自動偵測 "ProxyType"=dword:00000003 "AutodetectProxy"=dword:00000001 "UseProxy"=- "UseBrowserProxy"=- ; 自訂 "ProxyType"=dword:00000002 "UseProxy"=dword:00000001 "AutodetectProxy"=- "UseBrowserProxy"=- ; 使用瀏覽器 Proxy 設定 "ProxyType"=dword:00000001 "UseBrowserProxy"=dword:00000001 "AutodetectProxy"=- "UseProxy"=-
CMD
:: 選項 (只使用其中一個) :: 自動偵測 reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "ProxyType" /t REG_DWORD /d 3 /f reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "AutodetectProxy" /t REG_DWORD /d 1 /f reg delete "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "UseProxy" /f reg delete "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "UseBrowserProxy" /f :: 自訂 reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "ProxyType" /t REG_DWORD /d 2 /f reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "UseProxy" /t REG_DWORD /d 1 /f reg delete "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "AutodetectProxy" /f reg delete "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "UseBrowserProxy" /f :: 使用瀏覽器 Proxy 設定 reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "ProxyType" /t REG_DWORD /d 1 /f reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "UseBrowserProxy" /t REG_DWORD /d 1 /f reg delete "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "AutodetectProxy" /f reg delete "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "UseProxy" /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Force | Out-Null # 選項 (只使用其中一個) # 自動偵測 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'ProxyType' -PropertyType DWord -Value 3 -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'AutodetectProxy' -PropertyType DWord -Value 1 -Force | Out-Null Remove-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'UseProxy' Remove-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'UseBrowserProxy' # 自訂 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'ProxyType' -PropertyType DWord -Value 2 -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'UseProxy' -PropertyType DWord -Value 1 -Force | Out-Null Remove-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'AutodetectProxy' Remove-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'UseBrowserProxy' # 使用瀏覽器 Proxy 設定 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'ProxyType' -PropertyType DWord -Value 1 -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'UseBrowserProxy' -PropertyType DWord -Value 1 -Force | Out-Null Remove-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'AutodetectProxy' Remove-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'UseProxy'
ProxyAddress
REG_SZ使用者- 啟用時的值
- 取決於選項值
- 元素
- Proxy 位址
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> "ProxyAddress"="<輸入值>"
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "ProxyAddress" /t REG_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'ProxyAddress' -PropertyType String -Value '<輸入值>' -Force | Out-Null
ProxyPort
REG_DWORD使用者- 啟用時的值
- 取決於選項值
- 元素
- Proxy 連接埠
- 值類型
- REG_DWORD
- 最小值
- 1
- 最大值
- 65535
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> "ProxyPort"=dword:<輸入值>
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "ProxyPort" /t REG_DWORD /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'ProxyPort' -PropertyType DWord -Value '<輸入值>' -Force | Out-Null
BypassProxyLocal
REG_DWORD使用者- 已核取
- 1
- 未核取
- 0
- 元素
- 本機位址不要使用 Proxy
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP] ; 選項 (只使用其中一個) ; 已核取 "BypassProxyLocal"=dword:00000001 ; 未核取 "BypassProxyLocal"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "BypassProxyLocal" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "BypassProxyLocal" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'BypassProxyLocal' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'BypassProxyLocal' -PropertyType DWord -Value 0 -Force | Out-Null
ExludeFromProxy
REG_SZ使用者- 啟用時的值
- 取決於選項值
- 元素
- 不要為開頭為下列項目的位址使用 Proxy 伺服器
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> "ExludeFromProxy"="<輸入值>"
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP" /v "ExludeFromProxy" /t REG_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP' -Name 'ExludeFromProxy' -PropertyType String -Value '<輸入值>' -Force | Out-Null