RDS Session Host on the Connection Broker

jellekamma 221 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.

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
3,064 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. jellekamma 221 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.