Empty Temporary Internet Files folder when browser is closed
Vider le dossier Fichiers Internet temporaires lorsque le navigateur est fermé
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.
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\CacheHKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Cache- Value name
Persistent
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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 SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"