Search bar location: registry value SearchBarComputerHKLM\Software\Policies\Mozilla\Firefox

Policy ID
SearchBar
Scope
Computer Configuration, User Configuration
Supported on
Firefox 60 or later, Firefox 60 ESR or later
Source
Mozilla Firefox Policy Templates (version 8.3)
Category
Mozilla › Firefox

Registry

SearchBar

REG_SZComputerUser
Enabled value
Depends on the option value
Element
-
Options
ItemStored value
Unifiedunified
Separateseparate
Apply with .reg · CMD · PowerShell
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox]

; Options (use only one)
; Unified
"SearchBar"="unified"
; Separate
"SearchBar"="separate"
CMD
:: Options (use only one)

:: Unified
reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "SearchBar" /t REG_SZ /d "unified" /f
:: Separate
reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "SearchBar" /t REG_SZ /d "separate" /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Options (use only one)
# Unified
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'SearchBar' -PropertyType String -Value 'unified' -Force | Out-Null
# Separate
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'SearchBar' -PropertyType String -Value 'separate' -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox]

; Options (use only one)
; Unified
"SearchBar"="unified"
; Separate
"SearchBar"="separate"
CMD
:: Options (use only one)

:: Unified
reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "SearchBar" /t REG_SZ /d "unified" /f
:: Separate
reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "SearchBar" /t REG_SZ /d "separate" /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Options (use only one)
# Unified
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'SearchBar' -PropertyType String -Value 'unified' -Force | Out-Null
# Separate
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'SearchBar' -PropertyType String -Value 'separate' -Force | Out-Null