question

jellekamma avatar image
0 Votes"
jellekamma asked jellekamma commented

RDS Session Host on the Connection Broker

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-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

jellekamma avatar image
0 Votes"
jellekamma answered jellekamma commented

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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
Thank you for posting your query. According to your description, you are intended to make new-RDSsession deployment.
What's the version of your server?
Have you disabled IPV6? Please try to close the current PowerShell and open a new one after you disabled the IPv6.

Here are some related links you may refer to.
New-RDSessionDeployment
https://docs.microsoft.com/en-us/powershell/module/remotedesktop/new-rdsessiondeployment?view=windowsserver2019-ps&viewFallbackFrom=win10-ps
Step by Step instructions for installing RDS Session Deployment using PowerShell in Windows Server 2012 R2
https://techcommunity.microsoft.com/t5/ask-the-performance-team/step-by-step-instructions-for-installing-rds-session-deployment/ba-p/375569

0 Votes 0 ·

Hi! it is a 2016 server and IPV6 is disabled from the start. As stated above, the command works when runned as domain admin. So my question is, how do I elevate my script to run as domain admin? I have the get-credential cmdlet stored as $cred

0 Votes 0 ·