Al cerrar sesión, eliminar la copia local de archivos sin conexión del usuario: valor del Registro PurgeAtLogoff y 1 másEquipoHKLM\Software\Policies\Microsoft\Windows\NetCache

Id. de directiva
Pol_PurgeAtLogoff
Ámbito
Configuración del equipo
Compatible con
Solo Windows Server 2003, Windows XP y Windows 2000
Origen
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versión 1.0)
Categoría
Red › Archivos sin conexión

Registro

PurgeAtLogoff

-Equipo

PurgeOnlyAutoCacheAtLogoff

REG_DWORDEquipo
Marcada
1
Sin marcar
0
Elemento
Eliminar solo los archivos temporales sin conexión.
Tipo de valor
REG_DWORD
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache]

; Opciones (usar solo una)
; Marcada
"PurgeOnlyAutoCacheAtLogoff"=dword:00000001
; Sin marcar
"PurgeOnlyAutoCacheAtLogoff"=dword:00000000
CMD
:: Opciones (usar solo una)

:: Marcada
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "PurgeOnlyAutoCacheAtLogoff" /t REG_DWORD /d 1 /f
:: Sin marcar
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "PurgeOnlyAutoCacheAtLogoff" /t REG_DWORD /d 0 /f
PowerShell
# Común: crear la clave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null

# Opciones (usar solo una)
# Marcada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'PurgeOnlyAutoCacheAtLogoff' -PropertyType DWord -Value 1 -Force | Out-Null
# Sin marcar
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'PurgeOnlyAutoCacheAtLogoff' -PropertyType DWord -Value 0 -Force | Out-Null