Allow HTTPS-Only Mode to be enabled
Explanation
This policy controls whether users can enable HTTPS-Only Mode (Always Use Secure Connections) in Settings. HTTPS-Only Mode attempts to upgrade all navigation to HTTPS.
If this setting isn't set or is set to Allowed, users are able to enable HTTPS-Only Mode.
If this setting is set to Disallowed, HTTPS-Only Mode will be disabled.
If this setting is set to Force Enabled, HTTPS-Only Mode is enabled in Strict mode.
If this setting is set to Force Balance Enabled, HTTPS-Only Mode is enabled in Balanced mode.
The settings Force Enabled and Force Enabled can be recommended to users. HTTPS-Only Mode will be set to Strict or Balanced initially, but users are allowed to change it.
If you set this policy to a value that isn't supported by the version of Microsoft Edge that receives the policy, Microsoft Edge defaults to the Allowed setting.
The separate HttpAllowlist policy can be used to exempt specific hostnames or hostname patterns from being upgraded to HTTPS by this feature.
Policy options mapping:
* allowed (allowed) = Don't restrict users' HTTPS-Only Mode setting
* disallowed (disallowed) = Disable HTTPS-Only Mode
* force_enabled (force_enabled) = Force enable HTTPS-Only Mode in Strict mode
* force_balanced_enabled (force_balanced_enabled) = Force enable HTTPS-Only Mode in Balanced Mode
Use the preceding information when configuring this policy.
Example value: disallowed
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge\RecommendedHKEY_CURRENT_USER\Software\Policies\Microsoft\Edge\Recommended- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: msedge/HttpsOnlyMode_recommended
$k = 'HKLM:\Software\Policies\Microsoft\Edge\Recommended'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Allow HTTPS-Only Mode to be enabled
# Possible options:
# Don't restrict users' HTTPS-Only Mode setting = allowed
# Disable HTTPS-Only Mode = disallowed
# Force enable HTTPS-Only Mode in Strict mode = force_enabled
# Force enable HTTPS-Only Mode in Balanced Mode = force_balanced_enabled
Set-ItemProperty -Path $k -Name 'HttpsOnlyMode' -Value 'allowed' -Type StringDisable
# Disable: msedge/HttpsOnlyMode_recommended
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": msedge/HttpsOnlyMode_recommended
$k = 'HKLM:\Software\Policies\Microsoft\Edge\Recommended'
Remove-ItemProperty -Path $k -Name 'HttpsOnlyMode' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Allow HTTPS-Only Mode to be enabledHttpsOnlyMode | Drop-down listenum | HttpsOnlyMode | REG_SZ |
|
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.