You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/windows-server/remote/troubleshoot-unexpected-rds-session-locks-or-disconnections.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Troubleshoot unexpected RDS session locks or disconnections
3
-
description: Introduces how to configure RDS session timeouts to troubleshoot unexpected session locks or disconnections.
3
+
description: Introduces how to configure RDS session time-outs to troubleshoot unexpected session locks or disconnections.
4
4
ms.date: 01/15/2025
5
5
manager: dcscontentpm
6
6
audience: itpro
@@ -12,27 +12,27 @@ ms.custom:
12
12
---
13
13
# Troubleshoot unexpected RDS session locks or disconnections
14
14
15
-
A Remote Desktop Services (RDS) session can enter **locks** and **disconnects** status at regular intervals. This requires users to log in or reconnect to the session. This article introduces how to troubleshoot unexpected **locks** and **disconnects** time intervals.
15
+
A Remote Desktop Services (RDS) session can enter **locks** and **disconnects** status at regular intervals. In this situation, the session requires users to sign in or reconnect to the session. This article introduces how to troubleshoot unexpected **locks** and **disconnects** time intervals.
16
16
17
17
## Introductions
18
18
19
19
RDS can have the following status:
20
20
21
21
-**active**: the user is currently connected and interacting with the system.
22
-
-**idle**: the user is connected but has not interacted with the server for a specific period.
22
+
-**idle**: the user is connected but hasn't interacted with the server for a specific period.
23
23
-**locked**: users are redirected to the login screen, but their sessions remain active without any error message.
24
-
-**disconnected**: The user's connection to the server has been severed, and then the RDP window typically closes with an error message. The session remains running on the server.
24
+
-**disconnected**: The user's connection to the server has been severed, and then the RDP window typically closes with an error message. The session remains to run on the server.
25
25
26
26
Disconnects occurring without a consistent timing pattern are more likely caused by **network issues** rather than configuration settings.
27
27
28
-
## Verify if the session timeout is a disconnect
28
+
## Verify if the session time-out is a disconnect
29
29
30
30
On a Windows computer, when **MaxIdleTime** or **MaxConnectionTime** are configured, RDS sessions disconnect when conditions are met with distinct messages. Additional RDS session time limit policies determine the behavior after a session is disconnected.
31
31
32
32
| Configuration | Set time limit for active but idle RDS sessions | Set time limit for active RDS sessions |
| Message when disconnected | Your Remote Desktop Services session ended because the remote computer didn't receive any input from you. | The remote session ended because the total logon time limit was reached. This limit is set by the server administrator or by network policies. |
35
+
| Message when disconnected | Your Remote Desktop Services session ended because the remote computer didn't receive any input from you. | The remote session ended because the total sign-in time limit was reached. This limit is set by the server administrator or by network policies. |
36
36
37
37
You can use the following two methods to configure the above registry values.
> - If users connect to the RDS Deployment through a Remote Desktop Gateway (RDGW), similar configuration can be done in **RDGW manager > Policies > Connection Authorization Policies > Timeouts tab**. Users that bypass the RDGW won't be affected.
48
-
> - Session timeout will have a distinct disconnect message compared to the message caused by the **MaxConnectionTime** setting: **The connection has been disconnected because the session timeout limit was reached.**
48
+
> - Session time-out has a distinct disconnect message compared to the message caused by the **MaxConnectionTime** setting: **The connection has been disconnected because the session timeout limit was reached.**
49
49
50
50
### Computer and User policies
51
51
@@ -57,14 +57,14 @@ Policy configurations are applied to the corresponding registry path:
- User policy registry path: **HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Terminal Services**
59
59
60
-
## Verify if the session timeout is a Lock
60
+
## Verify if the session time-out is a Lock
61
61
62
62
On a Windows machine, there are two distinct forms of configuring a session lock:
63
63
64
64
1.**Machine inactivity limit** policy.
65
65
2. Configuring a **Screen saver**.
66
66
67
-
If any of the above is configured, sessions will be locked when conditions are met.
67
+
If any of the above settings is configured, sessions are locked when conditions are met.
68
68
69
69
> [!IMPORTANT]
70
70
>
@@ -73,7 +73,7 @@ If any of the above is configured, sessions will be locked when conditions are m
73
73
74
74
### Machine inactivity limit policy
75
75
76
-
The policy can only be configured at the Computer level, with the value specified in seconds. The configuration policy path and the corresponding registry path where it will be applied are outlined below:
76
+
The policy can only be configured at the Computer level, with the value specified in seconds. The following are the configuration policy path and the corresponding registry path:
Values are written on registry path: `Computer\HKEY_CURRENT_USER\Control Panel\Desktop`
@@ -104,17 +104,17 @@ Values are written on registry path: `Computer\HKEY_CURRENT_USER\Control Panel\D
104
104
105
105
Three below policies must be configured to enable Screen Saver: **Enable screen saver**, **Password protect the screen saver**, and **Screen saver timeout**.
106
106
107
-
The configuration policies path and the corresponding registry path where it will be applied are outlined below:
107
+
The following are the configuration policies path and the corresponding registry path:
If the preceding steps cannot resolve the issue, collect data on the affected machine while replicating the issue. Download [TSS script](https://aka.ms/getTSS), and run the following command on an elevated Powershell:
114
+
If the preceding steps can't resolve the issue, collect data on the affected machine while replicating the issue. Download [TSS script](https://aka.ms/getTSS), and run the following command on an elevated PowerShell:
115
115
116
116
```powershell
117
117
.\TSS.ps1 -Scenario UEX_RDSsrv -start -UEX_Logon
118
118
```
119
119
120
-
For more information see [Gather information by using TSS for user experience-related issues](../../windows-client/windows-tss/gather-information-using-tss-user-experience.md).
120
+
For more information, see [Gather information by using TSS for user experience-related issues](../../windows-client/windows-tss/gather-information-using-tss-user-experience.md).
0 commit comments