Open in the explorer

Allow HTTPS-Only Mode to be enabled

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Microsoft Edge - Default Settings (users can override) User Configuration › Policies › Administrative Templates › Microsoft Edge - Default Settings (users can override)
Supported on
Microsoft Edge version 140, Windows 7 or later
ADMX file
msedge.admx
Internal name
msedge/HttpsOnlyMode_recommended

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\Recommended
HKEY_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 String

Disable

# 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 SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Allow HTTPS-Only Mode to be enabledHttpsOnlyModeDrop-down listenumHttpsOnlyModeREG_SZ
LabelValue
Don't restrict users' HTTPS-Only Mode settingREG_SZ = allowed
Disable HTTPS-Only ModeREG_SZ = disallowed
Force enable HTTPS-Only Mode in Strict modeREG_SZ = force_enabled
Force enable HTTPS-Only Mode in Balanced ModeREG_SZ = force_balanced_enabled

Application

Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.