Non-default server disconnect actions: registry value Pol_CustomGoOfflineActions_2 (HKLM CustomGoOfflineActions)ComputerHKLM\Software\Policies\Microsoft\Windows\NetCache\CustomGoOfflineActions

Policy ID
Pol_CustomGoOfflineActions_2
Scope
Computer Configuration
Supported on
Windows Server 2003, Windows XP, and Windows 2000 only
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Network › Offline Files

Registry

(list values)

REG_SZComputer
Enabled value
Depends on the option value
Element
Customize actions:
Value type
REG_SZ
Explicit value name
true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache\CustomGoOfflineActions]
"<enter name>"="<enter value>"
CMD
reg add "HKLM\Software\Policies\Microsoft\Windows\NetCache\CustomGoOfflineActions" /v "<enter name>" /t REG_SZ /d "<enter value>" /f
PowerShell
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache\CustomGoOfflineActions' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetCache\CustomGoOfflineActions' -Name '<enter name>' -PropertyType String -Value '<enter value>' -Force | Out-Null