Open in the explorer

Allow clearing browsing data on exit

Autoriser l’effacement des données de navigation en quittant

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Edge User Configuration › Policies › Administrative Templates › Windows Components › Microsoft Edge FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Microsoft EdgeFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Microsoft Edge
Supported on
Microsoft Edge on Windows 10, Version 1703 or later FR: Microsoft Edge sur Windows 10, version 1703 ou ultérieure
ADMX file
MicrosoftEdge.admx
Internal name
MicrosoftEdge/AllowClearingBrowsingDataOnExit

Explanation

This policy setting allows the automatic clearing of browsing data when Microsoft Edge closes.

If you enable this policy setting, clearing browsing history on exit is turned on.

If you disable or don't configure this policy setting, it can be turned on and configured by the employee in the Clear browsing data options under Settings.

French text from Windows 11 26H2

Ce paramètre de stratégie autorise l’effacement automatique des données de navigation à la fermeture de Microsoft Edge.

Si vous activez ce paramètre de stratégie, l’effacement de l’historique de navigation en quittant est activé.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, il peut être activé et configuré par les employés dans les options Effacer les données de navigation sous Paramètres.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\Privacy
HKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\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: MicrosoftEdge/AllowClearingBrowsingDataOnExit
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\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: MicrosoftEdge/AllowClearingBrowsingDataOnExit
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\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": MicrosoftEdge/AllowClearingBrowsingDataOnExit
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Privacy'
Remove-ItemProperty -Path $k -Name 'ClearBrowsingHistoryOnExit' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Availability

Windows Server