HTTPS-Only Mode 的登錄值 HttpsOnlyMode電腦HKLM\Software\Policies\Mozilla\Firefox
此語言沒有官方文字 (顯示英文原文)
- 原則 ID
- HttpsOnlyMode
- 適用範圍
- 電腦設定、使用者設定
- 支援的作業系統
- Firefox 127 or later
- 來源
- Mozilla Firefox Policy Templates (版本 8.3)
- 類別
- Mozilla › Firefox
登錄
HttpsOnlyMode
REG_SZ電腦使用者…\Software\Policies\Mozilla\FirefoxHKLM\Software\Policies\Mozilla\Firefox 目前的機碼
HKCU\Software\Policies\Mozilla\Firefox
HKCU\Software\Policies\Mozilla\Firefox
- 啟用時的值
- 取決於選項值
- 元素
- -
| 項目 | 儲存的值 |
|---|---|
| Off by default | allowed |
| Off and locked | disallowed |
| On by default | enabled |
| On and locked | force_enabled |
以 .reg · CMD · PowerShell 套用
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox] ; 選項 (只使用其中一個) ; Off by default "HttpsOnlyMode"="allowed" ; Off and locked "HttpsOnlyMode"="disallowed" ; On by default "HttpsOnlyMode"="enabled" ; On and locked "HttpsOnlyMode"="force_enabled"
CMD
:: 選項 (只使用其中一個) :: Off by default reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "allowed" /f :: Off and locked reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "disallowed" /f :: On by default reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "enabled" /f :: On and locked reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "force_enabled" /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Force | Out-Null # 選項 (只使用其中一個) # Off by default New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'allowed' -Force | Out-Null # Off and locked New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'disallowed' -Force | Out-Null # On by default New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'enabled' -Force | Out-Null # On and locked New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_enabled' -Force | Out-Null
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox] ; 選項 (只使用其中一個) ; Off by default "HttpsOnlyMode"="allowed" ; Off and locked "HttpsOnlyMode"="disallowed" ; On by default "HttpsOnlyMode"="enabled" ; On and locked "HttpsOnlyMode"="force_enabled"
CMD
:: 選項 (只使用其中一個) :: Off by default reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "allowed" /f :: Off and locked reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "disallowed" /f :: On by default reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "enabled" /f :: On and locked reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "HttpsOnlyMode" /t REG_SZ /d "force_enabled" /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Force | Out-Null # 選項 (只使用其中一個) # Off by default New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'allowed' -Force | Out-Null # Off and locked New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'disallowed' -Force | Out-Null # On by default New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'enabled' -Force | Out-Null # On and locked New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'HttpsOnlyMode' -PropertyType String -Value 'force_enabled' -Force | Out-Null