Allow clearing browsing data on exit
Autoriser l’effacement des données de navigation en quittant
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.
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\PrivacyHKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\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: 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 DWordDisable
# 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 DWordRevert to "Not configured"
# Revert to "Not configured": MicrosoftEdge/AllowClearingBrowsingDataOnExit
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Privacy'
Remove-ItemProperty -Path $k -Name 'ClearBrowsingHistoryOnExit' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"