en-US windows computer user

Empty Temporary Internet Files folder when browser is closed

Verified with Windows 11 25H2 — updated on July 23, 2026

Windows 11 25H2

Supported on: At least Internet Explorer 6.0 in Windows 2003 Service Pack 1

Path in the GPO console

Computer Configuration\Administrative Templates\Windows Components\Internet Explorer\Internet Control Panel\Advanced Page

Description

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.

Registry

HKLM Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Cache
HKCU Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Cache

Value name: Persistent

Enabled: Persistent = 0

Disabled: Persistent = 1

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

Scope

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Empty Temporary Internet Files folder when browser is closed
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: At least Internet Explorer 6.0 in Windows 2003 Service Pack 1

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Cache]
"Persistent"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Empty Temporary Internet Files folder when browser is closed
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: At least Internet Explorer 6.0 in Windows 2003 Service Pack 1

$path = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Cache'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'Persistent' -Value 0 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview