À la fermeture de session, supprimer les copies locales des fichiers hors connexion de l’utilisateur : valeur de Registre PurgeAtLogoff et 1 autresOrdinateurHKLM\Software\Policies\Microsoft\Windows\NetCache

ID de stratégie
Pol_PurgeAtLogoff
Étendue
Configuration ordinateur
Pris en charge sur
Windows Server 2003, Windows XP et Windows 2000 uniquement
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Réseau › Fichiers hors connexion

Registre

PurgeAtLogoff

-Ordinateur

PurgeOnlyAutoCacheAtLogoff

REG_DWORDOrdinateur
Cochée
1
Décochée
0
Élément
Supprimer uniquement les versions hors connexion temporaires.
Type de valeur
REG_DWORD
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Options (en utiliser une seule)
; Cochée
"PurgeOnlyAutoCacheAtLogoff"=dword:00000001
; Décochée
"PurgeOnlyAutoCacheAtLogoff"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Cochée
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "PurgeOnlyAutoCacheAtLogoff" /t REG_DWORD /d 1 /f
:: Décochée
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "PurgeOnlyAutoCacheAtLogoff" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null

# Options (en utiliser une seule)
# Cochée
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'PurgeOnlyAutoCacheAtLogoff' -PropertyType DWord -Value 1 -Force | Out-Null
# Décochée
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'PurgeOnlyAutoCacheAtLogoff' -PropertyType DWord -Value 0 -Force | Out-Null