Ação na desconexão do servidor: valor do Registro GoOfflineAction (HKLM NetCache)ComputadorHKLM\Software\Policies\Microsoft\Windows\NetCache
- ID da política
- Pol_GoOfflineAction_2
- 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
GoOfflineAction
REG_DWORDComputador- Valor habilitado
- Depende do valor da opção
- Elemento
- Ação:
| Item | Valor armazenado |
|---|---|
| Trabalhar off-line | 0 |
| Nunca ficar off-line | 1 |
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) ; Trabalhar off-line "GoOfflineAction"=dword:00000000 ; Nunca ficar off-line "GoOfflineAction"=dword:00000001
CMD
:: Opções (use apenas uma) :: Trabalhar off-line reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "GoOfflineAction" /t REG_DWORD /d 0 /f :: Nunca ficar off-line reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "GoOfflineAction" /t REG_DWORD /d 1 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null # Opções (use apenas uma) # Trabalhar off-line New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'GoOfflineAction' -PropertyType DWord -Value 0 -Force | Out-Null # Nunca ficar off-line New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'GoOfflineAction' -PropertyType DWord -Value 1 -Force | Out-Null