Mode HTTPS-Only : valeur de Registre HttpsOnlyModeOrdinateurHKLM\Software\Policies\Mozilla\Firefox

ID de stratégie
HttpsOnlyMode
Étendue
Configuration ordinateur, configuration utilisateur
Pris en charge sur
Firefox 127 ou supérieur
Source
Mozilla Firefox Policy Templates (version 8.3)
Catégorie
Mozilla › Firefox

Registre

HttpsOnlyMode

REG_SZOrdinateurUtilisateur
…\Software\Policies\Mozilla\FirefoxHKLM\Software\Policies\Mozilla\Firefox Clé actuelle
HKCU\Software\Policies\Mozilla\Firefox
Valeur si activée
Dépend de la valeur de l'option
Élément
-
Options
EntréeValeur stockée
Désactivé par défautallowed
Désactivé et verrouillédisallowed
Activé par défautenabled
Activé et verrouilléforce_enabled
Appliquer avec .reg · CMD · PowerShell
OrdinateurParamètre valable pour tout l’ordinateur
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox]

; Options (en utiliser une seule)
; Désactivé par défaut
"HttpsOnlyMode"="allowed"
; Désactivé et verrouillé
"HttpsOnlyMode"="disallowed"
; Activé par défaut
"HttpsOnlyMode"="enabled"
; Activé et verrouillé
"HttpsOnlyMode"="force_enabled"
CMD
:: Options (en utiliser une seule)

:: Désactivé par défaut
reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "allowed" /f
:: Désactivé et verrouillé
reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "disallowed" /f
:: Activé par défaut
reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "enabled" /f
:: Activé et verrouillé
reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "force_enabled" /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Options (en utiliser une seule)
# Désactivé par défaut
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'allowed' -Force | Out-Null
# Désactivé et verrouillé
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'disallowed' -Force | Out-Null
# Activé par défaut
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'enabled' -Force | Out-Null
# Activé et verrouillé
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_enabled' -Force | Out-Null
UtilisateurParamètre par compte
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox]

; Options (en utiliser une seule)
; Désactivé par défaut
"HttpsOnlyMode"="allowed"
; Désactivé et verrouillé
"HttpsOnlyMode"="disallowed"
; Activé par défaut
"HttpsOnlyMode"="enabled"
; Activé et verrouillé
"HttpsOnlyMode"="force_enabled"
CMD
:: Options (en utiliser une seule)

:: Désactivé par défaut
reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "allowed" /f
:: Désactivé et verrouillé
reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "disallowed" /f
:: Activé par défaut
reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "enabled" /f
:: Activé et verrouillé
reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "force_enabled" /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Options (en utiliser une seule)
# Désactivé par défaut
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'allowed' -Force | Out-Null
# Désactivé et verrouillé
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'disallowed' -Force | Out-Null
# Activé par défaut
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'enabled' -Force | Out-Null
# Activé et verrouillé
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_enabled' -Force | Out-Null