RDS 2019 issues related with to much services

Krzysztof Sęk 1 Reputation point
2020-10-09T11:55:24.677+00:00

Hello All,

I have installed new RDS server on latest 2019 standard server. This is standalone RDS server. Server is used by more than 100 people and has enough resources and licenses etc... Users can connect to one RDS web app published on the server without any problems. Everything looks fine till time when i want to check few things on the server.

I can't open services mmc, because i'm receiving error message: "Error 1783: The stub received bad data":

31206-1.jpg

Same from powershell. Result of Get-Service is empty.

Solution is here:

https://learn.microsoft.com/en-us/troubleshoot/windows-server/system-management-components/error-1783...

Completely not acceptable for me, but i think above issue is correlated with: "Per-user services in Windows 10 and Windows Server":

https://learn.microsoft.com/en-us/windows/application-management/per-user-services-in-windows

So if one user can create few services, how much services will be if on server will be more than 100.

I can't open also Remote Desktop Services Overview from server manager:
31207-2.jpg
Next issue is related with monitoring system which can't get some data from this server.

Everything is coming back to normal if server is by fewer people, because when RDS session is disconnected then per user services also are removed. Then everything described above is working correctly.

So my question is what is the solution for this case, because i as administrator can't provide good quality of the RDS service, because i don't see many things described above. Probably is much more.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,536 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,324 questions
{count} votes

6 answers

Sort by: Most helpful
  1. C Jakubowski 1 Reputation point
    2021-02-23T14:14:17.353+00:00

    Actually i think i found the issue, the fix isn't that daunting

    1) Go to the regedit on the RDP server

    this is the location you are looking for

    HKLM\System\CurrentControlSet\Services

    in there find the services which there are a lot of suffixed with an underscore and loads of character

    For example PimIndexMaintenanceSvc_1ajnfodj30

    click on the parent service name and set the following entries

    "Start" to 4 (This disables the service)
    "UserServiceFlags" to 0 (This stops a new instance of the service from being created each time a user logs in)

    user-service-flag.png

    Hope this helps!