Set-RDSessionHost with NT AUTHORITY\System

Anonymous
2020-07-15T05:41:41.227+00:00

Hello everyone,
I am able to allow new connection to my RDSH using the following command with an administrator user :
Set-RDSessionHost -SessionHost 'xxxx' -NewConnectionAllowed Yes -ConnectionBroker 'xxxx'
But, I have a deployment tool that can schedule some task, this tool use the "NT AUTHORITY\System" account
Do you know if there is some way to authorise this user to change RDSessionHost status ? It would be great
Thanks

TechNet forum original post link:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/bee26080-e195-4cbc-9545-85cfa4160931/setrdsessionhost-with-nt-authoritysystem?forum=winserverTS

Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
0 comments No comments
{count} vote

Accepted answer
  1. Jenny Yan-MSFT 9,356 Reputation points
    2020-07-15T07:44:59.513+00:00

    Welcome to our new Microsoft Q&A Platform.

    HI
    2.when i use domain admin account to logon w2016 session host server then run powershell as admin,I can run the powershell command which you metioned successfully .so how can i reproduce your issue ?

    3.if we turn off firewall on both RDSH and RDCB server temporarily ,will the same issue happen ?
    12419-image.png

    12420-image.png

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. EL VECINO 1 Reputation point
    2022-10-12T13:51:10.037+00:00

    Hello u have to copy the Remotedesktop Module somewhere else thenn you are able to set the RDSH but only if Broker and Sessionhost are the same machine
    If your RDS Host is another Machine it uses PSRemoting and this does also not work for System

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.