Allow HTTPS-Only Mode to be enabled: registry value HttpsOnlyMode (Edge)UserHKCU\Software\Policies\Microsoft\Edge
- Policy ID
- HttpsOnlyMode
- Scope
- Computer Configuration, User Configuration
- Supported on
- Microsoft Edge version 140, Windows 7 or later
- Source
- Microsoft Edge Policy Templates (version 155.0.4283.45)
- Category
- Microsoft Edge
Registry
HttpsOnlyMode
REG_SZUserComputer…\Software\Policies\Microsoft\EdgeHKCU\Software\Policies\Microsoft\Edge Current key
HKLM\Software\Policies\Microsoft\Edge
HKLM\Software\Policies\Microsoft\Edge
- Enabled value
- Depends on the option value
- Element
- Allow HTTPS-Only Mode to be enabled
| Item | Stored value |
|---|---|
| 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 |
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge] ; Options (use only one) ; Don't restrict users' HTTPS-Only Mode setting "HttpsOnlyMode"="allowed" ; Disable HTTPS-Only Mode "HttpsOnlyMode"="disallowed" ; Force enable HTTPS-Only Mode in Strict mode "HttpsOnlyMode"="force_enabled" ; Force enable HTTPS-Only Mode in Balanced Mode "HttpsOnlyMode"="force_balanced_enabled"
CMD
:: Options (use only one) :: Don't restrict users' HTTPS-Only Mode setting reg add "HKCU\Software\Policies\Microsoft\Edge" /v "HttpsOnlyMode" /t REG_SZ /d "allowed" /f :: Disable HTTPS-Only Mode reg add "HKCU\Software\Policies\Microsoft\Edge" /v "HttpsOnlyMode" /t REG_SZ /d "disallowed" /f :: Force enable HTTPS-Only Mode in Strict mode reg add "HKCU\Software\Policies\Microsoft\Edge" /v "HttpsOnlyMode" /t REG_SZ /d "force_enabled" /f :: Force enable HTTPS-Only Mode in Balanced Mode reg add "HKCU\Software\Policies\Microsoft\Edge" /v "HttpsOnlyMode" /t REG_SZ /d "force_balanced_enabled" /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null # Options (use only one) # Don't restrict users' HTTPS-Only Mode setting New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'HttpsOnlyMode' -PropertyType String -Value 'allowed' -Force | Out-Null # Disable HTTPS-Only Mode New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'HttpsOnlyMode' -PropertyType String -Value 'disallowed' -Force | Out-Null # Force enable HTTPS-Only Mode in Strict mode New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_enabled' -Force | Out-Null # Force enable HTTPS-Only Mode in Balanced Mode New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -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\Microsoft\Edge] ; Options (use only one) ; Don't restrict users' HTTPS-Only Mode setting "HttpsOnlyMode"="allowed" ; Disable HTTPS-Only Mode "HttpsOnlyMode"="disallowed" ; Force enable HTTPS-Only Mode in Strict mode "HttpsOnlyMode"="force_enabled" ; Force enable HTTPS-Only Mode in Balanced Mode "HttpsOnlyMode"="force_balanced_enabled"
CMD
:: Options (use only one) :: Don't restrict users' HTTPS-Only Mode setting reg add "HKLM\Software\Policies\Microsoft\Edge" /v "HttpsOnlyMode" /t REG_SZ /d "allowed" /f :: Disable HTTPS-Only Mode reg add "HKLM\Software\Policies\Microsoft\Edge" /v "HttpsOnlyMode" /t REG_SZ /d "disallowed" /f :: Force enable HTTPS-Only Mode in Strict mode reg add "HKLM\Software\Policies\Microsoft\Edge" /v "HttpsOnlyMode" /t REG_SZ /d "force_enabled" /f :: Force enable HTTPS-Only Mode in Balanced Mode reg add "HKLM\Software\Policies\Microsoft\Edge" /v "HttpsOnlyMode" /t REG_SZ /d "force_balanced_enabled" /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null # Options (use only one) # Don't restrict users' HTTPS-Only Mode setting New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'HttpsOnlyMode' -PropertyType String -Value 'allowed' -Force | Out-Null # Disable HTTPS-Only Mode New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'HttpsOnlyMode' -PropertyType String -Value 'disallowed' -Force | Out-Null # Force enable HTTPS-Only Mode in Strict mode New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_enabled' -Force | Out-Null # Force enable HTTPS-Only Mode in Balanced Mode New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_balanced_enabled' -Force | Out-Null