Allow deleting browsing history on exit
Autoriser la suppression de l’historique de navigation en quittant
Explanation
This policy setting allows the automatic deletion of specified items when the last browser window closes. The preferences selected in the Delete Browsing History dialog box (such as deleting temporary Internet files, cookies, history, form data, and passwords) are applied, and those items are deleted.
If you enable this policy setting, deleting browsing history on exit is turned on.
If you disable this policy setting, deleting browsing history on exit is turned off.
If you do not configure this policy setting, it can be configured on the General tab in Internet Options.
If the "Prevent access to Delete Browsing History" policy setting is enabled, this policy setting has no effect.
Ce paramètre de stratégie autorise la suppression automatique des éléments spécifiés lorsque la dernière fenêtre du navigateur se ferme. Les préférences sélectionnées dans la boîte de dialogue Supprimer l’historique de navigation (par exemple la suppression des fichiers Internet temporaires, des cookies, de l’historique, des données de formulaires et des mots de passe) sont appliquées et ces éléments sont supprimés.
Si vous activez ce paramètre de stratégie, la suppression de l’historique de navigation en quittant le navigateur est activée.
Si vous désactivez ce paramètre de stratégie, la suppression de l’historique de navigation en quittant le navigateur est désactivée.
Si vous ne configurez pas ce paramètre de stratégie, il peut être configuré sous l’onglet Général, dans Options Internet.
Si le paramètre de stratégie « Empêcher l’accès à Supprimer l’historique de navigation » est activé, ce paramètre de stratégie n’a aucun effet.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\PrivacyHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Privacy- Value name
ClearBrowsingHistoryOnExit
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: inetres/DBHDisableDeleteOnExit
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Privacy'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ClearBrowsingHistoryOnExit' -Value 1 -Type DWordDisable
# Disable: inetres/DBHDisableDeleteOnExit
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Privacy'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ClearBrowsingHistoryOnExit' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/DBHDisableDeleteOnExit
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Privacy'
Remove-ItemProperty -Path $k -Name 'ClearBrowsingHistoryOnExit' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"