Share via

RDS Session Host on the Connection Broker

kamma 226 Reputation points
2021-03-30T07:32:35.533+00:00

Hi all,

We have a VMware template which deploys our virtual machines.
This all works fine. I am creating a template which will also configure the RDS roles. Each server must have a session based RDS config.

I am running this script as local admin:

$ServerName = Read-Host -Prompt 'Input your server FQDN name'
New-RDSessionDeployment -ConnectionBroker $ServerName -WebAccessServer $ServerName -SessionHost $ServerName -Verbose

however, I get the error: New-RDSessionDeployment : Validation failed for the "RD Connection Broker" parameter.
MYSERVER.xx.yy.fr Unable to connect to the server by using Windows PowerShell remoting.
Verify that you can connect to the server.

Now I have read this on a other website: Note If you are installing the Session Host on the Connection Broker, then you need to run this cmdlet on a remote server, as running it on the connection Broker will give you the following error:

How do I get around this? I want to do everything in this template, not some other manual actions on a different server.

Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services

1 answer

Sort by: Most helpful
  1. kamma 226 Reputation points
    2021-03-30T08:01:52.79+00:00

    Ok, so the command works when I run it as a domain admin.
    How do I make the command run as domain admin when the Local admin invokes the script?

    there is no -credential parameter.

    Was this answer helpful?


Your answer

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