Hello Community,
we are currently having serious problems with our RDS deployment in the production environment - the parallel built development environment is working fine.
A few key data where which roles are installed on Windows Server 2019, Build 1809 machines:
- Server A
RDS Broker
RDS License Server
Part of the AD group "Terminal Server License Servers".
30 User CAL RDS Windows Server 2019 installed
- Server B
RDS Gateway
- Server C
RDS host
Part of the only collection (using user profile disks, share resides on its own disk, attached to Server C).
error pattern
First, the RDS host is successfully added to the deployment, the RDS License Manager reports no errors. Licenses are assigned to the users according to the RDS License Manager. After some time, usually after a reboot, the following behavior occurs:
- If a user logs on, the system reports: License mode is not configured.
- A user does not receive a license according to the RDS License Manager.
- The RDS Licensing Diagnoser contains two warnings:
- License mode not configured
- License server not configured
NLA-Issue
The following GPO policy (Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Security) is intentionally disabled because it caused problems when setting up the RDS deployment: Require user authentication for remote connections by using Network Level Authentication: 0 (disabled)
Problems solved by disabling the policy:
When adding an RDS license server to the deployment, we get an "Invalid Operation" error message in the Assistant. Apparently NLA does not get along with the deploment operation.
Errors in eventlog "RemoteDesktopServices-RdpCoreTS"
Furthermore, we could find the error event ID 227 in the log RemoteDesktopServices-RdpCoreTS:
'SendClientLicense failed!' in CUMRDPConnection::SendClientLicense at 3839 err=[0x80070057].
A login attempt looks like this in the DesktopServices-RdpCoreTS log: 249324-event-log-remotedesktopservices-rdpcorets-logon-li.xml
Because the error occurred in the RemoteFX module, we tried to disable it using GPO and registry key. Unfortunately, the error remains.
----------
# Attempts to fix
The entire environment has already been completely rebuilt once. All systems were reinstalled from an image that was built according to Windows Security Baseline.
Open ports checked.
Setting the license server and license mode via the GPO
We have set the appropriate GPOs (Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing):
- Set the Remote Desktop licensing mode: 4 (per User)
- Use the specified Remote Desktop license servers: “Server A” (FQDN)
Manually setting the registry entry (HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM)
- (edit) LicenseMode: 4 (REG_DWORD, dezimal)
- (add) SpecifiedLicenseServers: Server A (FQDN)
Effects: none
Setting the LicenseServer via Powershell
$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj.SetSpecifiedLicenseServerList("ServerA.FQDN.com")
Effects: none
Ressources used (selection)
I would really appreciate any suggestions for solutions. Thanks a lot!