Open in the explorer

Empty Temporary Internet Files folder when browser is closed

Vider le dossier Fichiers Internet temporaires lorsque le navigateur est fermé

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › Advanced Page User Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › Advanced Page FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet AvancéFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet Avancé
Supported on
At least Internet Explorer 6.0 in Windows 2003 Service Pack 1 FR: Au moins Internet Explorer 6.0 dans Windows 2003 Service Pack 1
ADMX file
inetres.admx
Internal name
inetres/Advanced_TemporaryInternetFiles

Explanation

This policy setting allows you to manage whether Internet Explorer deletes the contents of the Temporary Internet Files folder after all browser windows are closed. This protects against storing dangerous files on the computer, or storing sensitive files that other users could see, in addition to managing total disk space usage.

If you enable this policy setting, Internet Explorer will delete the contents of the user's Temporary Internet Files folder when all browser windows are closed.

If you disable this policy setting, Internet Explorer will not delete the contents of the user's Temporary Internet Files folder when browser windows are closed.

If you do not configure this policy, Internet Explorer will not delete the contents of the Temporary Internet Files folder when browser windows are closed.

French text from Windows 11 26H2

Ce paramètre de stratégie permet d’administrer la suppression par Internet Explorer du contenu du dossier Fichiers Internet temporaires après la fermeture de toutes les fenêtres de navigation. Cette option empêche non seulement le stockage sur l’ordinateur de fichiers dangereux ou confidentiels ultérieurement accessibles à d’autres utilisateurs, mais permet également la gestion de l’usage de l’espace disque total.

Si vous activez ce paramètre de stratégie, Internet Explorer supprime le contenu du dossier Fichiers Internet temporaires à la fermeture de toutes les fenêtres de navigation.

Si vous désactivez ce paramètre de stratégie, Internet Explorer ne supprime pas le contenu du dossier Fichiers Internet temporaires à la fermeture des fenêtres de navigation.

Si vous ne configurez pas ce paramètre de stratégie, Internet Explorer ne supprime pas le contenu du dossier Fichiers Internet temporaires à la fermeture des fenêtres de navigation.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Cache
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Cache
Value name
Persistent
StateValue written
EnabledREG_DWORD = 0
DisabledREG_DWORD = 1

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/Advanced_TemporaryInternetFiles
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Cache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Persistent' -Value 0 -Type DWord

Disable

# Disable: inetres/Advanced_TemporaryInternetFiles
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Cache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Persistent' -Value 1 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": inetres/Advanced_TemporaryInternetFiles
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Cache'
Remove-ItemProperty -Path $k -Name 'Persistent' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Availability