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.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
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.