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
title: Unable to install RDS deployment or add RDS roles
2
+
title: Unable to Install RDS Deployment or Add RDS Roles
3
3
description: Helps troubleshoot issues related to the installation of RDS roles.
4
-
ms.date: 04/14/2025
4
+
ms.date: 04/17/2025
5
5
manager: dcscontentpm
6
6
audience: itpro
7
7
ms.topic: troubleshooting
@@ -12,24 +12,24 @@ ms.custom:
12
12
---
13
13
# Unable to install RDS deployment or add RDS roles
14
14
15
-
This article helps troubleshoot issues related to the installation of Remote Desktop Services (RDS) roles. The issue occurs either when deploying a brand new RDS deployment or when manually adding roles to a system or to a currently existing RDS deployment.
15
+
This article helps troubleshoot issues related to the installation of Remote Desktop Services (RDS) roles. The issue occurs when deploying a brand new RDS deployment or manually adding roles to a system or a currently existing RDS deployment.
16
16
17
-
There are several possible causes, as well as different possible behaviors and error messages. This article addresses some of those common reasons on this article.
17
+
There are several possible causes, different possible behaviors, and error messages. This article addresses some of those common reasons.
18
18
19
19
## Verify whether TLS 1.0 is disabled on the system
20
20
21
21
> [!NOTE]
22
-
> This specific issue applies only on Windows versions until Windows Server 2016. From Windows Server 2019 and later versions, it is possible for the RD Connection Broker role to communicate with the WID using higher TLS versions, such as TLS 1.2.
22
+
> This specific issue applies only to Windows Server 2016 and earlier versions. From Windows Server 2019 and later versions, the RD Connection Broker role can communicate with the Windows Internal Database (WID) using higher Transport Layer Security (TLS) versions, such as TLS 1.2.
23
23
24
24
### Symptoms
25
25
26
-
Assume that you use the inbox Windows Internal Database (WID) in Windows Server. If you disable Transport Layer Security (TLS) 1.0 when you configure security settings, you experience the following issues:
26
+
Assume that you use the inbox WID in Windows Server. If you disable TLS 1.0 when you configure security settings, you experience the following issues:
27
27
28
-
* The Remote Desktop Connection Broker role can't be installed.
28
+
* The RD Connection Broker role can't be installed.
29
29
* The RDS service fails.
30
-
* An existing RDS deployment that uses Remote Desktop Connection Broker and WID fails.
31
-
* The Remote Desktop Management service (RDMS) does not start.
32
-
* You receive the following error message when you try to start the RDMS:
30
+
* An existing RDS deployment that uses RD Connection Broker and WID fails.
31
+
* The Remote Desktop Management service (RDMS) doesn't start.
32
+
* You receive the following error message when you try to start RDMS:
33
33
34
34
> The Remote Desktop Management service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.
35
35
@@ -49,59 +49,61 @@ This behavior is expected because of the current dependencies between RDS and WI
49
49
To fix this issue, use one of the following methods:
50
50
51
51
* Don't disable TLS 1.0 on a single Connection Broker deployment.
52
-
* Configure a high availability Connection Broker deployment that uses dedicated SQL Server.
53
-
* Upgrade the computers that run the RDS services to Windows Server 2019.
52
+
* Configure a high availability Connection Broker deployment that uses a dedicated SQL Server.
53
+
* Upgrade the computers that run the RDS service to Windows Server 2019.
54
54
55
55
> [!NOTE]
56
-
> Microsoft has released [TLS 1.2 support for Microsoft SQL Server](../../sql/database-engine/connect/tls-1-2-support-microsoft-sql-server.md) to enable SQL Server communication to use TLS 1.2.
56
+
> Microsoft has released [TLS 1.2 support for Microsoft SQL Server](../../sql/database-engine/connect/tls-1-2-support-microsoft-sql-server.md) to enable SQL Server communications to use TLS 1.2.
57
57
58
-
## Connection Broker role fails to install due to removed permissions to service accounts to "Logon as a service"
58
+
## Connection Broker role fails to install due to "Logon as a service" permissions being removed for service accounts
59
59
60
60
When you try to install the RD Connection Broker role, the installation fails with the following error:
61
61
62
-
> Unable to install RD Connection Broker role service on server XXXXX.XXXXXX.XXX – Failed.
62
+
> Unable to install RD Connection Broker role service on server \<ServerName\> - Failed.
63
63
64
-
This is commonly due to the fact the object "NT SERVICE\ALL SERVICES" has been removed from the "Logon as a service" security policy, or there is another policy denying the "Logon as a service" privilege to the according service account.
64
+
This is commonly due to the fact that the object "NT SERVICE\ALL SERVICES" has been removed from the **Logon as a service** security policy, or there's another policy denying the **Logon as a service** privilege to the corresponding service account.
65
65
66
-
You may also see the following error event on the "System" event log:
66
+
You might also see the following error event in the System event log:
67
67
68
-
> Log Name: System
69
-
> Source: Service Control Manager
70
-
> Date: mm/dd/yyyy hh:mm:ss pp
71
-
> Event ID: 7041
72
-
> Task Category: None
73
-
> Level: Error
74
-
> Keywords: Classic
75
-
> User: N/A
76
-
> Computer: MyServer.com
77
-
> Description:
78
-
> The MSSQL$MICROSOFT##WID service was unable to log on as NT SERVICE\MSSQL$MICROSOFT##WID with the currently configured password due to the following error:
79
-
> Logon failure: the user has not been granted the requested logon type at this computer.
80
-
>
81
-
> Service: MSSQL$MICROSOFT##WID
82
-
> Domain and account: NT SERVICE\MSSQL$MICROSOFT##WID
83
-
>
84
-
> This service account does not have the required user right "Log on as a service."
85
-
>
86
-
> User Action
87
-
>
88
-
> Assign "Log on as a service" to the service account on this computer. You can use Local Security Settings (Secpol.msc) to do this. If this computer is a node in a cluster, check that this user right is assigned to the Cluster service account on all nodes in the cluster.
89
-
>
90
-
> If you have already assigned this user right to the service account, and the user right appears to be removed, check with your domain administrator to find out if a Group Policy object associated with this node might be removing the right.
68
+
```output
69
+
Log Name: System
70
+
Source: Service Control Manager
71
+
Date: mm/dd/yyyy hh:mm:ss pp
72
+
Event ID: 7041
73
+
Task Category: None
74
+
Level: Error
75
+
Keywords: Classic
76
+
User: N/A
77
+
Computer: MyServer.com
78
+
Description:
79
+
The MSSQL$MICROSOFT##WID service was unable to log on as NT SERVICE\MSSQL$MICROSOFT##WID with the currently configured password due to the following error:
80
+
Logon failure: the user has not been granted the requested logon type at this computer.
81
+
82
+
Service: MSSQL$MICROSOFT##WID
83
+
Domain and account: NT SERVICE\MSSQL$MICROSOFT##WID
84
+
85
+
This service account does not have the required user right "Log on as a service."
86
+
87
+
User Action
88
+
89
+
Assign "Log on as a service" to the service account on this computer. You can use Local Security Settings (Secpol.msc) to do this. If this computer is a node in a cluster, check that this user right is assigned to the Cluster service account on all nodes in the cluster.
90
+
91
+
If you have already assigned this user right to the service account, and the user right appears to be removed, check with your domain administrator to find out if a Group Policy object associated with this node might be removing the right.
92
+
```
91
93
92
94
### Resolution
93
95
94
-
Add the "NT SERVICE\ALL SERVICES" group back to the "Log on as a service" security policy. Also confirm that this group, or another service account object (e.g. Network service), is not part of the "Deny logon as a service" security policy.
96
+
Add the "NT SERVICE\ALL SERVICES" group back to the **Log on as a service** security policy. Also, confirm that this group or another service account object (such as Network service) isn't part of the **Deny logon as a service** security policy.
95
97
96
-
If it still fails after the above conditions are met, try adding the service account "NT SERVICE\MSSQL$MICROSOFT##WID" to the "Logon as a service" security policy.
98
+
If it still fails after the preceding conditions are met, try adding the service account "NT SERVICE\MSSQL$MICROSOFT##WID" to the **Logon as a service** security policy.
97
99
98
100
## Issues related to WinRM
99
101
100
-
Server manager, RDMS UI (Remote Desktop Management Services User Interface) and RDS PowerShell cmdlets heavily rely on WinRM to operate.
102
+
Server Manager, RDMS UI (Remote Desktop Management Services User Interface), and RDS PowerShell cmdlets heavily rely on WinRM to operate.
101
103
102
-
If the issue is related to Server Manager or RDMS UI not operating properly, we might eventually be facing an WinRMrelated issue.
104
+
If the issue is related to Server Manager or RDMS UI not operating properly, you might eventually face a WinRM-related issue.
103
105
104
-
* A common reason is having a proxy set on the system's WinHTTP interface. This can be checked by running the following command on an elevated cmd prompt:
106
+
* A common reason is having a proxy set on the system's WinHTTP interface. You can check this by running the following command in an elevated command prompt:
105
107
106
108
```console
107
109
netsh winhttp show proxy
@@ -113,59 +115,61 @@ If the issue is related to Server Manager or RDMS UI not operating properly, we
113
115
netsh wintthp reset proxy
114
116
```
115
117
116
-
Alternatively, set exclusions using the following command (We recommend removing proxy first for testing purposes. Use the above steps to confirm the proxy is indeed the cause of the issue):
118
+
Alternatively, set exclusions using the following command (we recommend removing the proxy first for testing purposes. Use the preceding steps to confirm the proxy is indeed the cause of the issue):
117
119
118
120
For example:
119
121
120
122
```console
121
123
set proxy proxy-server="http=<proxy>;https=<sproxy>:88" bypass-list="\*.contoso.com"
122
124
```
123
125
124
-
*We can also check if the system has any configured WinRMrelated GPOs, which can also be a good test to temporarily remove them for testing purposes:
126
+
*You can also check if the system has any WinRM-related Group Policy Objects (GPOs) configured under the following path. It can also be a good test to temporarily remove them for testing purposes.
## Failed to add RD Session Host to a session collection or to create a new collection
134
+
## Fails to add RD Session Host to a session collection or create a new collection
133
135
134
-
Adding a RD Session Host to a collection might fail. You might receive different error messages. Usually the error message starts with "Unable to add the RD session Host to the collection…" followed by a more descriptive sentence of the underlying reason.
136
+
Adding an RD Session Host to a collection might fail. You might receive different error messages. Usually, the error message starts with "Unable to add the RD Session Host to the collection…" followed by a more descriptive sentence of the underlying reason.
135
137
136
138
This behavior can be caused by different reasons. Here are some possible causes:
137
139
138
-
* WinRMrelated reasons, as described in to previous sections in this article.
139
-
* The RD Session Host has existing GPOs configured, especially RDS-related ones, which prevent the deployment from overriding the desired settings. To resolve this, temporarily remove the GPOs, add the RD Session Host to the deployment or collection, then reapply the desired GPOs.
140
+
* WinRM-related reasons, as described in previous sections of this article.
141
+
* The RD Session Host has existing GPOs configured, especially RDS-related ones, which prevent the deployment from overriding the desired settings. To resolve this issue, temporarily remove the GPOs, add the RD Session Host to the deployment or collection, and then reapply the desired GPOs.
140
142
141
-
The error message might vary. Commonly the error message can be "Unable to configure the RD Session Host Server \<ServerName\>. Invalid Operation."
143
+
The error message might vary. Commonly, the error message can be "Unable to configure the RD Session Host Server \<ServerName\>. Invalid Operation."
142
144
143
145
> [!NOTE]
144
-
> Common GPOS that might cause this behaviour, are the following listed below, although we recommend removing any RDSrelated GPO and test:
146
+
> Here's a list of common GPOS that might cause this behavior, but we recommend removing any RDS-related GPOs and testing:
145
147
>
146
-
> * Require user authentication for remote connections by using Network Level Authentication
147
-
> * Set client connection encryption level
148
-
> * Use the specified Remote Desktop license servers
148
+
> ***Require user authentication for remote connections by using Network Level Authentication**
149
+
> ***Set client connection encryption level**
150
+
> ***Use the specified Remote Desktop license servers**
* If we receive the error message that contains "Some or all identity references could not be translated" while adding a RD Session Host to a collection, this typically indicates issues with resolving the SID(s) of groups that are part of the permission list of the Session Collection.
156
-
157
-
There can be various reasons for issues resolving the SID. It is advisable to contact Microsoft Support for a detailed analysis of the situation. To confirm this issue (or temporarily work around it), we can test by gradually removing groups of users from the Session Collection permission list until we identify the group(s) causing the behavior.
157
+
* If you receive an error message that contains "Some or all identity references could not be translated" while adding an RD Session Host to a collection, this typically indicates issues with resolving the SID(s) of groups that are part of the permission list of the Session Collection.
158
158
159
-
* The error message "Unable to connect to the server by using Windows Powershell Remoting" can be due to different reasons, but a possible cause is that the Environment Variables have been changed or are incorrectly configured.
159
+
There can be various reasons for issues resolving the SID. We recommend that you contact Microsoft Support for a detailed analysis of the situation. To confirm this issue (or temporarily work around it), you can test by gradually removing groups of users from the Session Collection permission list until you identify the group(s) causing the behavior.
160
160
161
-
To fix this, run the command *sysdm.cpl*, opening **System Properties** menu > **Advance** tab > **Environment Variables**
161
+
* The error message "Unable to connect to the server by using Windows PowerShell Remoting" can be due to different reasons, but a possible cause is that the environment variousariables have been changed or are incorrectly configured.
162
162
163
-
Under **System variables**, select **Path** > "Edit".
163
+
To fix this issue, follow these steps:
164
+
165
+
1. run the `sysdm.cpl` command.
166
+
2. In the **System Properties** window, select the **Advanced** tab, and then select **Environment Variables**.
167
+
3. Under **System variables**, select **Path** > **Edit**.
164
168
165
-
You may have several environment variables, this can vary according to each system, but make sure the following ones are present and correctly configured:
169
+
You might have several environment variables, and this can vary according to each system, but make sure the following ones are present and correctly configured:
0 commit comments