Demander l'emplacement de téléchargement : valeur de Registre PromptForDownloadLocationOrdinateurHKLM\Software\Policies\Mozilla\Firefox

ID de stratégie
PromptForDownloadLocation
Étendue
Configuration ordinateur, configuration utilisateur
Pris en charge sur
Firefox 68 ou supérieur, Firefox 68 ESR ou supérieur
Source
Mozilla Firefox Policy Templates (version 8.3)
Catégorie
Mozilla › Firefox

Registre

PromptForDownloadLocation

REG_DWORDOrdinateurUtilisateur
…\Software\Policies\Mozilla\FirefoxHKLM\Software\Policies\Mozilla\Firefox Clé actuelle
HKCU\Software\Policies\Mozilla\Firefox
Valeur si activée
1
Valeur si désactivée
0
Appliquer avec .reg · CMD · PowerShell
OrdinateurParamètre valable pour tout l’ordinateur
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox]

; Options (en utiliser une seule)
; Activé
"PromptForDownloadLocation"=dword:00000001
; Désactivé
"PromptForDownloadLocation"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Activé
reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "PromptForDownloadLocation" /t REG_DWORD /d 1 /f
:: Désactivé
reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "PromptForDownloadLocation" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Options (en utiliser une seule)
# Activé
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'PromptForDownloadLocation' -PropertyType DWord -Value 1 -Force | Out-Null
# Désactivé
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'PromptForDownloadLocation' -PropertyType DWord -Value 0 -Force | Out-Null
UtilisateurParamètre par compte
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox]

; Options (en utiliser une seule)
; Activé
"PromptForDownloadLocation"=dword:00000001
; Désactivé
"PromptForDownloadLocation"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Activé
reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "PromptForDownloadLocation" /t REG_DWORD /d 1 /f
:: Désactivé
reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "PromptForDownloadLocation" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Options (en utiliser une seule)
# Activé
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'PromptForDownloadLocation' -PropertyType DWord -Value 1 -Force | Out-Null
# Désactivé
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'PromptForDownloadLocation' -PropertyType DWord -Value 0 -Force | Out-Null