Default Download Directory: registry value DefaultDownloadDirectoryComputerHKLM\Software\Policies\Mozilla\Firefox

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

Registry

DefaultDownloadDirectory

REG_EXPAND_SZComputerUser
Enabled value
Depends on the option value
Element
-
Value type
REG_EXPAND_SZ
Expandable string (REG_EXPAND_SZ)
true
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
; hex(2) and hex(7) data must be written as hexadecimal (UTF-16LE)
"DefaultDownloadDirectory"=hex(2):<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 "DefaultDownloadDirectory" /t REG_EXPAND_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 'DefaultDownloadDirectory' -PropertyType ExpandString -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
; hex(2) and hex(7) data must be written as hexadecimal (UTF-16LE)
"DefaultDownloadDirectory"=hex(2):<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 "DefaultDownloadDirectory" /t REG_EXPAND_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 'DefaultDownloadDirectory' -PropertyType ExpandString -Value '<enter value>' -Force | Out-Null