A fine sessione elimina la copia locale dei file offline dell'utente: valore del Registro di sistema PurgeAtLogoff e altri 1ComputerHKLM\Software\Policies\Microsoft\Windows\NetCache

ID criterio
Pol_PurgeAtLogoff
Ambito
Configurazione computer
Supportato in
Solo Windows Server 2003, Windows XP e Windows 2000
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Rete › File offline

Registro

PurgeAtLogoff

-Computer

PurgeOnlyAutoCacheAtLogoff

REG_DWORDComputer
Selezionato
1
Non selezionato
0
Elemento
Elimina solo i file offline temporanei.
Tipo di valore
REG_DWORD
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Selezionato
"PurgeOnlyAutoCacheAtLogoff"=dword:00000001
; Non selezionato
"PurgeOnlyAutoCacheAtLogoff"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "PurgeOnlyAutoCacheAtLogoff" /t REG_DWORD /d 1 /f
:: Non selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "PurgeOnlyAutoCacheAtLogoff" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null

# Opzioni (usarne solo una)
# Selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'PurgeOnlyAutoCacheAtLogoff' -PropertyType DWord -Value 1 -Force | Out-Null
# Non selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'PurgeOnlyAutoCacheAtLogoff' -PropertyType DWord -Value 0 -Force | Out-Null