Open in the explorer

Disable "Configuring History"

Désactiver « Configuration de l’historique »

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 5.0 FR: Au moins Internet Explorer 5.0
ADMX file
inetres.admx
Internal name
inetres/RestrictHistory

Explanation

This setting specifies the number of days that Internet Explorer tracks views of pages in the History List. To access the Temporary Internet Files and History Settings dialog box, from the Menu bar, on the Tools menu, click Internet Options, click the General tab, and then click Settings under Browsing history.

If you enable this policy setting, a user cannot set the number of days that Internet Explorer tracks views of the pages in the History List. You must specify the number of days that Internet Explorer tracks views of pages in the History List. Users can not delete browsing history.

If you disable or do not configure this policy setting, a user can set the number of days that Internet Explorer tracks views of pages in the History list. Users can delete browsing history.

French text from Windows 11 26H2

Ce paramètre indique le nombre de jours au cours desquels Internet Explorer conserve l’historique des pages consultées. Pour accéder à la boîte de dialogue Paramètres des fichiers Internet temporaires et de l’historique, sélectionnez le menu Outils dans la barre des menus, cliquez sur Options Internet, cliquez sur l’onglet Général, puis cliquez sur Paramètres sous Historique de navigation.

Si vous activez ce paramètre de stratégie, un utilisateur ne peut pas définir le nombre de jours pendant lesquels Internet Explorer conserve l’historique des pages consultées. Vous devez indiquer le nombre de jours au cours desquels Internet Explorer conserve l’historique des pages consultées. Les utilisateurs ne peuvent pas supprimer l’historique de navigation.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’utilisateur peut définir le nombre de jours pendant lesquels Internet Explorer conserve l’historique des pages consultées. Les utilisateurs peuvent supprimer l’historique de navigation.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Control Panel
HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel
Value name
History
StateValue written
Enablednot defined in the ADMX (see the options below)
Disablednot defined in the ADMX (see the options below)

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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/RestrictHistory
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Control Panel'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'History' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url History'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Days to keep pages in History
Set-ItemProperty -Path $k -Name 'DaysToKeep' -Value 20 -Type DWord  # maximum 999

Disable

# Disable: inetres/RestrictHistory
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Control Panel'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'History' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": inetres/RestrictHistory
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Control Panel'
Remove-ItemProperty -Path $k -Name 'History' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url History'
Remove-ItemProperty -Path $k -Name 'DaysToKeep' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Days to keep pages in HistoryJours pendant lesquels ces pages sont conservéesDaysToKeep_PromptNumeric boxdecimalDaysToKeepin Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url HistoryREG_DWORD
Required · Max: 999 · Default (UI): 20

Availability