Action à la déconnexion du serveur : valeur de Registre GoOfflineAction (HKLM NetCache)OrdinateurHKLM\Software\Policies\Microsoft\Windows\NetCache

ID de stratégie
Pol_GoOfflineAction_2
É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

GoOfflineAction

REG_DWORDOrdinateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Action :
Options
EntréeValeur stockée
Travailler hors connexion0
Ne jamais travailler hors connexion1
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)
; Travailler hors connexion
"GoOfflineAction"=dword:00000000
; Ne jamais travailler hors connexion
"GoOfflineAction"=dword:00000001
CMD
:: Options (en utiliser une seule)

:: Travailler hors connexion
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "GoOfflineAction" /t REG_DWORD /d 0 /f
:: Ne jamais travailler hors connexion
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache" /v "GoOfflineAction" /t REG_DWORD /d 1 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null

# Options (en utiliser une seule)
# Travailler hors connexion
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'GoOfflineAction' -PropertyType DWord -Value 0 -Force | Out-Null
# Ne jamais travailler hors connexion
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache' -Name 'GoOfflineAction' -PropertyType DWord -Value 1 -Force | Out-Null