Select network detection on the server: registry value SelectNetworkDetectComputerHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

Policy ID
TS_SELECT_NETWORK_DETECT
Scope
Computer Configuration
Supported on
At least Windows Server 2012, Windows 8 or Windows RT
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Remote Desktop Services › Remote Desktop Session Host › Connections

Registry

SelectNetworkDetect

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Select Network Detect Level
Options
ItemStored value
Use both Connect Time Detect and Continuous Network Detect0
Turn off Connect Time Detect1
Turn off Continuous Network Detect2
Turn off Connect Time Detect and Continuous Network Detect3
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]

; Options (use only one)
; Use both Connect Time Detect and Continuous Network Detect
"SelectNetworkDetect"=dword:00000000
; Turn off Connect Time Detect
"SelectNetworkDetect"=dword:00000001
; Turn off Continuous Network Detect
"SelectNetworkDetect"=dword:00000002
; Turn off Connect Time Detect and Continuous Network Detect
"SelectNetworkDetect"=dword:00000003
CMD
:: Options (use only one)

:: Use both Connect Time Detect and Continuous Network Detect
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "SelectNetworkDetect" /t REG_DWORD /d 0 /f
:: Turn off Connect Time Detect
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "SelectNetworkDetect" /t REG_DWORD /d 1 /f
:: Turn off Continuous Network Detect
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "SelectNetworkDetect" /t REG_DWORD /d 2 /f
:: Turn off Connect Time Detect and Continuous Network Detect
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "SelectNetworkDetect" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null

# Options (use only one)
# Use both Connect Time Detect and Continuous Network Detect
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'SelectNetworkDetect' -PropertyType DWord -Value 0 -Force | Out-Null
# Turn off Connect Time Detect
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'SelectNetworkDetect' -PropertyType DWord -Value 1 -Force | Out-Null
# Turn off Continuous Network Detect
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'SelectNetworkDetect' -PropertyType DWord -Value 2 -Force | Out-Null
# Turn off Connect Time Detect and Continuous Network Detect
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'SelectNetworkDetect' -PropertyType DWord -Value 3 -Force | Out-Null