Open in the explorer

Allow deleting browsing history on exit

Autoriser la suppression de l’historique de navigation en quittant

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Delete Browsing History User Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Delete Browsing History FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Supprimer l’historique de navigationFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Supprimer l’historique de navigation
Supported on
At least Internet Explorer 8.0 FR: Au moins Internet Explorer 8.0
ADMX file
inetres.admx
Internal name
inetres/DBHDisableDeleteOnExit

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.

French text from Windows 11 26H2

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\Privacy
HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Privacy
Value name
ClearBrowsingHistoryOnExit
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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 DWord

Disable

# 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 DWord

Revert to "Not configured"

# Revert to "Not configured": inetres/DBHDisableDeleteOnExit
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Privacy'
Remove-ItemProperty -Path $k -Name 'ClearBrowsingHistoryOnExit' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Availability