允許啟用僅限 HTTPS 模式 的登錄值 HttpsOnlyMode (Chrome)電腦HKLM\Software\Policies\Google\Chrome

原則 ID
HttpsOnlyMode
適用範圍
電腦設定、使用者設定
支援的作業系統
Microsoft Windows 7 以上版本
來源
Google Chrome Policy Templates (版本 156.0.8078.80)
類別
Google › Google Chrome

登錄

HttpsOnlyMode

REG_SZ電腦使用者
…\Software\Policies\Google\ChromeHKLM\Software\Policies\Google\Chrome 目前的機碼
HKCU\Software\Policies\Google\Chrome
啟用時的值
取決於選項值
元素
允許啟用僅限 HTTPS 模式
選項
項目儲存的值
不限制使用者的僅限 HTTPS 模式設定allowed
停用僅限 HTTPS 模式disallowed
在嚴格模式下強制啟用僅限 HTTPS 模式force_enabled
在平衡模式下強制啟用僅限 HTTPS 模式force_balanced_enabled
以 .reg · CMD · PowerShell 套用
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome]

; 選項 (只使用其中一個)
; 不限制使用者的僅限 HTTPS 模式設定
"HttpsOnlyMode"="allowed"
; 停用僅限 HTTPS 模式
"HttpsOnlyMode"="disallowed"
; 在嚴格模式下強制啟用僅限 HTTPS 模式
"HttpsOnlyMode"="force_enabled"
; 在平衡模式下強制啟用僅限 HTTPS 模式
"HttpsOnlyMode"="force_balanced_enabled"
CMD
:: 選項 (只使用其中一個)

:: 不限制使用者的僅限 HTTPS 模式設定
reg add "HKLM\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "allowed" /f
:: 停用僅限 HTTPS 模式
reg add "HKLM\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "disallowed" /f
:: 在嚴格模式下強制啟用僅限 HTTPS 模式
reg add "HKLM\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "force_enabled" /f
:: 在平衡模式下強制啟用僅限 HTTPS 模式
reg add "HKLM\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "force_balanced_enabled" /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null

# 選項 (只使用其中一個)
# 不限制使用者的僅限 HTTPS 模式設定
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'allowed' -Force | Out-Null
# 停用僅限 HTTPS 模式
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'disallowed' -Force | Out-Null
# 在嚴格模式下強制啟用僅限 HTTPS 模式
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_enabled' -Force | Out-Null
# 在平衡模式下強制啟用僅限 HTTPS 模式
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_balanced_enabled' -Force | Out-Null
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Google\Chrome]

; 選項 (只使用其中一個)
; 不限制使用者的僅限 HTTPS 模式設定
"HttpsOnlyMode"="allowed"
; 停用僅限 HTTPS 模式
"HttpsOnlyMode"="disallowed"
; 在嚴格模式下強制啟用僅限 HTTPS 模式
"HttpsOnlyMode"="force_enabled"
; 在平衡模式下強制啟用僅限 HTTPS 模式
"HttpsOnlyMode"="force_balanced_enabled"
CMD
:: 選項 (只使用其中一個)

:: 不限制使用者的僅限 HTTPS 模式設定
reg add "HKCU\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "allowed" /f
:: 停用僅限 HTTPS 模式
reg add "HKCU\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "disallowed" /f
:: 在嚴格模式下強制啟用僅限 HTTPS 模式
reg add "HKCU\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "force_enabled" /f
:: 在平衡模式下強制啟用僅限 HTTPS 模式
reg add "HKCU\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "force_balanced_enabled" /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null

# 選項 (只使用其中一個)
# 不限制使用者的僅限 HTTPS 模式設定
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'allowed' -Force | Out-Null
# 停用僅限 HTTPS 模式
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'disallowed' -Force | Out-Null
# 在嚴格模式下強制啟用僅限 HTTPS 模式
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_enabled' -Force | Out-Null
# 在平衡模式下強制啟用僅限 HTTPS 模式
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_balanced_enabled' -Force | Out-Null