ADMX Viewer
Microsoft.Policies.TerminalServer• Machine

Disconnect remote session on lock for legacy authentication

This policy setting allows you to configure the user experience when the Remote Desktop session is locked by the user or by a policy. You can specify whether the remote session will show the remote lock screen or disconnect when the remote session is locked. Disconnecting the remote session ensures that a remote session cannot be left on the lock screen and cannot reconnect automatically due to loss of network connectivity. This policy applies only when using legacy authentication to authenticate to the remote PC. Legacy authentication is limited to username and password, or certificates like smartcards. Legacy authentication doesn't leverage the Microsoft identity platform, such as Microsoft Entra ID. Legacy authentication includes the NTLM, CredSSP, RDSTLS, TLS, and RDP basic authentication protocols. If you enable this policy setting, Remote Desktop connections using legacy authentication will disconnect the remote session when the remote session is locked. Users can reconnect when they're ready and re-enter their credentials when prompted. If you disable or do not configure this policy setting, Remote Desktop connections using legacy authentication will show the remote lock screen when the remote session is locked. Users can unlock the remote session using their username and password, or certificates.

Policy Details

Policy Name
TS_DISCONNECT_ON_LOCK_POLICY
Registry Key
SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value Name
fDisconnectOnLockLegacy
Supported On
At least Windows Vista
OMA-URI (CSP)
RemoteDesktopServices/DisconnectOnLockLegacyAuthn
OS Build Version:10.0.26100, 10.0.20348.2461, 10.0.22621.3593, 10.0.22000.2960, 10.0.25398.887, 10.0.19041.4474
CSP Version:10.0
Conflict Resolution:LastWrite
Allowed Editions:
EnterpriseEnterprise NProfessionalProfessional NEnterprise EvaluationEnterprise N EvaluationEducationEducation NEnterprise SEnterprise S NEnterprise S EvaluationEnterprise S N EvaluationPro Single LanguagePro ChinaPro WorkstationPro Workstation NPro For EducationPro For Education NEnterprisegEnterprisegnServerrdshIotenterpriseIotenterprisesCloudeditionnCloudeditionIotenterpriseskIotenterprisesevalWnc
Policy State Values
Enabled: 1
Disabled: 0
Available Languages
en-us