2

This is an issue I already found the answer after many hours. But it is so crazy that I want to share my result.

I wanted in windows use the powershell command

Set-RDSessionCollectionConfiguration

to define UDS files for RDS (remote desktop). But it did not work, as it complained that I need RDS service first being setup.

My German error message:

Die Remotedesktopdienste-Bereitstellung ist auf "EX01.foobar.local" nicht vorhanden

But wait, it was already setup!

As admin (different user) I see it in Server-Manager!

Andreas
  • 151

1 Answers1

2

Finaly the answer is:

  • The service user (which I use for winrm), must have added the terminal servers as manageable servers first to his Server-Manager!

How can this be? Server-Manager is a GUI tool and I just want to add UDS parameters.

The crazy thing is, that somehow the Set-RDSessionCollectionConfiguration interacts with the Server-Manager instance of the user who is executing it. Not a pure command line behaviour.

My personal solution is, that I manipulate a special XML file of the Server-Manager, where the added manageable machines are listed.

\AppData\Roaming\Microsoft\Windows\ServerManager\ServerList.xml

Shame on MS for this way to alter a service.

Hope this helps someone else one day.

Andreas
  • 151