Ao fazer logoff, exclua a cópia local dos arquivos off-line do usuário: valor do Registro PurgeAtLogoff e mais 1ComputadorHKLM\Software\Policies\Microsoft\Windows\NetCache

ID da política
Pol_PurgeAtLogoff
Escopo
Configuração do Computador
Compatível com
Windows Server 2003, Windows XP e Windows 2000 somente
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Rede › Arquivos Off-line

Registro

PurgeAtLogoff

-Computador

PurgeOnlyAutoCacheAtLogoff

REG_DWORDComputador
Marcado
1
Desmarcado
0
Elemento
Excluir somente os arquivos off-line temporários.
Tipo de valor
REG_DWORD
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; Marcado
"PurgeOnlyAutoCacheAtLogoff"=dword:00000001
; Desmarcado
"PurgeOnlyAutoCacheAtLogoff"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Marcado
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "PurgeOnlyAutoCacheAtLogoff" /t REG_DWORD /d 1 /f
:: Desmarcado
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "PurgeOnlyAutoCacheAtLogoff" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null

# Opções (use apenas uma)
# Marcado
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'PurgeOnlyAutoCacheAtLogoff' -PropertyType DWord -Value 1 -Force | Out-Null
# Desmarcado
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'PurgeOnlyAutoCacheAtLogoff' -PropertyType DWord -Value 0 -Force | Out-Null