Prevent deleting passwords
Empêcher la suppression des mots de passe
Explanation
This policy setting prevents users from deleting passwords. This feature is available in the Delete Browsing History dialog box.
If you enable this policy setting, passwords are preserved when the user clicks Delete.
If you disable this policy setting, passwords are deleted when the user clicks Delete.
If you do not configure this policy setting, the user can choose whether to delete or preserve passwords when he or she clicks Delete.
If the "Prevent access to Delete Browsing History" policy setting is enabled, this policy setting is enabled by default.
Ce paramètre de stratégie empêche les utilisateurs de supprimer les mots de passe. Cette fonctionnalité est disponible dans la boîte de dialogue Supprimer l’historique de navigation.
Si vous activez ce paramètre de stratégie, les mots de passe sont conservés lorsque l’utilisateur clique sur Supprimer.
Si vous désactivez ce paramètre de stratégie, les mots de passe sont supprimés lorsque l’utilisateur clique sur Supprimer.
Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur est libre de supprimer ou de conserver les mots de passe lorsqu’il clique sur Supprimer.
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 est activé par défaut.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Control PanelHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel- Value name
DisableDeletePasswords
| 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/NoDelPasswords
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Control Panel'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableDeletePasswords' -Value 1 -Type DWordDisable
# Disable: inetres/NoDelPasswords
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Control Panel'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableDeletePasswords' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/NoDelPasswords
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Control Panel'
Remove-ItemProperty -Path $k -Name 'DisableDeletePasswords' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"