Site Policies (JSON on one line): registry value SitePolicies (SitePoliciesOneLine)ComputerHKLM\Software\Policies\Mozilla\Firefox
- Policy ID
- SitePoliciesOneLine
- Scope
- Computer Configuration, User Configuration
- Supported on
- Firefox 150 or later
- Source
- Mozilla Firefox Policy Templates (version 8.3)
- Category
- Mozilla › Firefox
Registry
SitePolicies
REG_SZComputerUser…\Software\Policies\Mozilla\FirefoxHKLM\Software\Policies\Mozilla\Firefox Current key
HKCU\Software\Policies\Mozilla\Firefox
HKCU\Software\Policies\Mozilla\Firefox
- Enabled value
- Depends on the option value
- Element
- -
- Value type
- REG_SZ
- Maximum length
- 16384
Apply with .reg · CMD · PowerShell
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "SitePolicies"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "SitePolicies" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'SitePolicies' -PropertyType String -Value '<enter value>' -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "SitePolicies"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "SitePolicies" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'SitePolicies' -PropertyType String -Value '<enter value>' -Force | Out-Null