Private Browsing Mode Availability: registry value PrivateBrowsingModeAvailabilityComputerHKLM\Software\Policies\Mozilla\Firefox
- Policy ID
- PrivateBrowsingModeAvailability
- Scope
- Computer Configuration, User Configuration
- Supported on
- Firefox 130 or later, Firefox 128.2 ESR or later
- Source
- Mozilla Firefox Policy Templates (version 8.3)
- Category
- Mozilla › Firefox
Registry
PrivateBrowsingModeAvailability
REG_DWORDComputerUser…\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
- -
| Item | Stored value |
|---|---|
| Allow Private Browsing Mode | 0 |
| Disable Private Browsing Mode | 1 |
| Force Private Browsing Mode | 2 |
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) ; Allow Private Browsing Mode "PrivateBrowsingModeAvailability"=dword:00000000 ; Disable Private Browsing Mode "PrivateBrowsingModeAvailability"=dword:00000001 ; Force Private Browsing Mode "PrivateBrowsingModeAvailability"=dword:00000002
CMD
:: Options (use only one) :: Allow Private Browsing Mode reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "PrivateBrowsingModeAvailability" /t REG_DWORD /d 0 /f :: Disable Private Browsing Mode reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "PrivateBrowsingModeAvailability" /t REG_DWORD /d 1 /f :: Force Private Browsing Mode reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "PrivateBrowsingModeAvailability" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Force | Out-Null # Options (use only one) # Allow Private Browsing Mode New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'PrivateBrowsingModeAvailability' -PropertyType DWord -Value 0 -Force | Out-Null # Disable Private Browsing Mode New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'PrivateBrowsingModeAvailability' -PropertyType DWord -Value 1 -Force | Out-Null # Force Private Browsing Mode New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'PrivateBrowsingModeAvailability' -PropertyType DWord -Value 2 -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox] ; Options (use only one) ; Allow Private Browsing Mode "PrivateBrowsingModeAvailability"=dword:00000000 ; Disable Private Browsing Mode "PrivateBrowsingModeAvailability"=dword:00000001 ; Force Private Browsing Mode "PrivateBrowsingModeAvailability"=dword:00000002
CMD
:: Options (use only one) :: Allow Private Browsing Mode reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "PrivateBrowsingModeAvailability" /t REG_DWORD /d 0 /f :: Disable Private Browsing Mode reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "PrivateBrowsingModeAvailability" /t REG_DWORD /d 1 /f :: Force Private Browsing Mode reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "PrivateBrowsingModeAvailability" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Force | Out-Null # Options (use only one) # Allow Private Browsing Mode New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'PrivateBrowsingModeAvailability' -PropertyType DWord -Value 0 -Force | Out-Null # Disable Private Browsing Mode New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'PrivateBrowsingModeAvailability' -PropertyType DWord -Value 1 -Force | Out-Null # Force Private Browsing Mode New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'PrivateBrowsingModeAvailability' -PropertyType DWord -Value 2 -Force | Out-Null