Allow HTTPS-Only Mode to be enabled: registry value HttpsOnlyMode (Chrome)UserHKCU\Software\Policies\Google\Chrome

Policy ID
HttpsOnlyMode
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Windows 7 or later
Source
Google Chrome Policy Templates (version 156.0.8078.80)
Category
Google › Google Chrome

Registry

HttpsOnlyMode

REG_SZUserComputer
Enabled value
Depends on the option value
Element
Allow HTTPS-Only Mode to be enabled
Options
ItemStored value
Do not restrict users' HTTPS-Only Mode settingallowed
Disable HTTPS-Only Modedisallowed
Enable HTTPS-Only Mode in Strict modeforce_enabled
Enable HTTPS-Only Mode in Balanced Modeforce_balanced_enabled
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Google\Chrome]

; Options (use only one)
; Do not restrict users' HTTPS-Only Mode setting
"HttpsOnlyMode"="allowed"
; Disable HTTPS-Only Mode
"HttpsOnlyMode"="disallowed"
; Enable HTTPS-Only Mode in Strict mode
"HttpsOnlyMode"="force_enabled"
; Enable HTTPS-Only Mode in Balanced Mode
"HttpsOnlyMode"="force_balanced_enabled"
CMD
:: Options (use only one)

:: Do not restrict users' HTTPS-Only Mode setting
reg add "HKCU\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "allowed" /f
:: Disable HTTPS-Only Mode
reg add "HKCU\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "disallowed" /f
:: Enable HTTPS-Only Mode in Strict mode
reg add "HKCU\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "force_enabled" /f
:: Enable HTTPS-Only Mode in Balanced Mode
reg add "HKCU\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "force_balanced_enabled" /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null

# Options (use only one)
# Do not restrict users' HTTPS-Only Mode setting
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'allowed' -Force | Out-Null
# Disable HTTPS-Only Mode
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'disallowed' -Force | Out-Null
# Enable HTTPS-Only Mode in Strict mode
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_enabled' -Force | Out-Null
# Enable HTTPS-Only Mode in Balanced Mode
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_balanced_enabled' -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome]

; Options (use only one)
; Do not restrict users' HTTPS-Only Mode setting
"HttpsOnlyMode"="allowed"
; Disable HTTPS-Only Mode
"HttpsOnlyMode"="disallowed"
; Enable HTTPS-Only Mode in Strict mode
"HttpsOnlyMode"="force_enabled"
; Enable HTTPS-Only Mode in Balanced Mode
"HttpsOnlyMode"="force_balanced_enabled"
CMD
:: Options (use only one)

:: Do not restrict users' HTTPS-Only Mode setting
reg add "HKLM\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "allowed" /f
:: Disable HTTPS-Only Mode
reg add "HKLM\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "disallowed" /f
:: Enable HTTPS-Only Mode in Strict mode
reg add "HKLM\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "force_enabled" /f
:: Enable HTTPS-Only Mode in Balanced Mode
reg add "HKLM\Software\Policies\Google\Chrome" /v "HttpsOnlyMode" /t REG_SZ /d "force_balanced_enabled" /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null

# Options (use only one)
# Do not restrict users' HTTPS-Only Mode setting
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'allowed' -Force | Out-Null
# Disable HTTPS-Only Mode
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'disallowed' -Force | Out-Null
# Enable HTTPS-Only Mode in Strict mode
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_enabled' -Force | Out-Null
# Enable HTTPS-Only Mode in Balanced Mode
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_balanced_enabled' -Force | Out-Null