Autoriser l’effacement des données de navigation en quittant
Allow clearing browsing data on exit
Explication
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.
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.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\PrivacyHKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Privacy- Nom de la valeur
ClearBrowsingHistoryOnExit
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Ordinateur (HKLM)
Activer
# Activer : 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 DWordDésactiver
# Désactiver : 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 DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : MicrosoftEdge/AllowClearingBrowsingDataOnExit
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Privacy'
Remove-ItemProperty -Path $k -Name 'ClearBrowsingHistoryOnExit' -ErrorAction SilentlyContinueUtilisateur (HKCU)
Activer
Désactiver
Revenir à « Non configuré »