Mode HTTPS-Only : valeur de Registre HttpsOnlyModeUtilisateurHKCU\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_SZUtilisateurOrdinateur…\Software\Policies\Mozilla\FirefoxHKCU\Software\Policies\Mozilla\Firefox Clé actuelle
HKLM\Software\Policies\Mozilla\Firefox
HKLM\Software\Policies\Mozilla\Firefox
- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- -
| Entrée | Valeur stockée |
|---|---|
| Désactivé par défaut | allowed |
| Désactivé et verrouillé | disallowed |
| Activé par défaut | enabled |
| Activé et verrouillé | force_enabled |
Appliquer avec .reg · CMD · PowerShell
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
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