Empêcher la suppression des cookies : valeur de Registre CleanCookiesOrdinateurHKLM\Software\Policies\Microsoft\Internet Explorer\Privacy

ID de stratégie
DBHDisableDeleteCookies
Étendue
Configuration ordinateur, configuration utilisateur
Pris en charge sur
Au moins Internet Explorer 8.0
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Composants Windows › Internet Explorer › Supprimer l’historique de navigation

Registre

CleanCookies

REG_DWORDOrdinateurUtilisateur
Valeur si activée
0
Valeur si désactivée
1
Appliquer avec .reg · CMD · PowerShell
OrdinateurParamètre valable pour tout l’ordinateur
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Privacy]

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

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

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

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Privacy]

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

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

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