Skip to content

Commit 849223b

Browse files
authored
Updates from editor
1 parent d4c98f1 commit 849223b

1 file changed

Lines changed: 74 additions & 70 deletions

File tree

Lines changed: 74 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Unable to install RDS deployment or add RDS roles
2+
title: Unable to Install RDS Deployment or Add RDS Roles
33
description: Helps troubleshoot issues related to the installation of RDS roles.
4-
ms.date: 04/14/2025
4+
ms.date: 04/17/2025
55
manager: dcscontentpm
66
audience: itpro
77
ms.topic: troubleshooting
@@ -12,24 +12,24 @@ ms.custom:
1212
---
1313
# Unable to install RDS deployment or add RDS roles
1414

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.
1616

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.
1818

1919
## Verify whether TLS 1.0 is disabled on the system
2020

2121
> [!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.
2323
2424
### Symptoms
2525

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:
2727

28-
* The Remote Desktop Connection Broker role can't be installed.
28+
* The RD Connection Broker role can't be installed.
2929
* 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:
3333

3434
> 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.
3535
@@ -49,59 +49,61 @@ This behavior is expected because of the current dependencies between RDS and WI
4949
To fix this issue, use one of the following methods:
5050

5151
* 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.
5454

5555
> [!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.
5757
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
5959

6060
When you try to install the RD Connection Broker role, the installation fails with the following error:
6161

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.
6363
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.
6565

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:
6767

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+
```
9193

9294
### Resolution
9395

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.
9597

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.
9799

98100
## Issues related to WinRM
99101

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.
101103

102-
If the issue is related to Server Manager or RDMS UI not operating properly, we might eventually be facing an WinRM related issue.
104+
If the issue is related to Server Manager or RDMS UI not operating properly, you might eventually face a WinRM-related issue.
103105

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:
105107

106108
```console
107109
netsh winhttp show proxy
@@ -113,59 +115,61 @@ If the issue is related to Server Manager or RDMS UI not operating properly, we
113115
netsh wintthp reset proxy
114116
```
115117

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):
117119

118120
For example:
119121

120122
```console
121123
set proxy proxy-server="http=<proxy>;https=<sproxy>:88" bypass-list="\*.contoso.com"
122124
```
123125

124-
* We can also check if the system has any configured WinRM related 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.
125127

126128
**Computer Configuration** > **Policies** > **Administrative Templates** > **Windows Components** > **Windows Remote Management (WinRM)**
127129

128-
* Finally, we can look in the event viewer for potential WinRM problematic events, under:
130+
* Finally, you can look in the Event Viewer for potential WinRM problematic events under:
129131

130132
**Applications and Services Logs** > **Microsoft** > **Windows** > **Windows Remote Management** > **Operational**
131133

132-
## 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
133135

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.
135137

136138
This behavior can be caused by different reasons. Here are some possible causes:
137139

138-
* WinRM related 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.
140142

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."
142144

143145
> [!NOTE]
144-
> Common GPOS that might cause this behaviour, are the following listed below, although we recommend removing any RDS related 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:
145147
>
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**
149151
>
150-
> Paths to the GPOs mentioned above:
152+
> Paths to the preceding GPOs:
151153
>
152154
> * **Computer Configuration** > **Administrative Templates** > **Windows Components** > **Remote Desktop Services** > **Security**
153155
> * **Computer Configuration** > **Administrative Templates** > **Windows Components** > **Remote Desktop Services** > **Remote Desktop Session Host** > **Licensing**
154156
155-
* 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.
158158

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.
160160

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.
162162

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**.
164168

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:
166170

167-
* *%SystemRoot%\\system32*
168-
* *%SystemRoot%*
169-
* *%SystemRoot%\\system32\\Wbem*
170-
* *%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\*
171-
* *%SYSTEMROOT%\\System32\\OpenSSH\\*
171+
* **%SystemRoot%\\system32**
172+
* **%SystemRoot%**
173+
* **%SystemRoot%\\system32\\Wbem**
174+
* **%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\**
175+
* **%SYSTEMROOT%\\System32\\OpenSSH\\**

0 commit comments

Comments
 (0)