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.