Hello,
I'm trying to write a simple rdp client. I cut rdp file to the minimum number of parameters that are necessary to run the application in our environment with "seamless" application mode. Content can be divided into two parts: the connection to the TS infrastructure and the application's startup:
full address:s:connectionbroker.domain.local
gatewayhostname:s:gateway.domain.local
use redirection server name:i:1
loadbalanceinfo:s:tsv://MS Terminal Services Plugin.1.SOS
remoteapplicationmode:i:1
remoteapplicationprogram:s:||calc
remoteapplicationname:s:Calculator
Application is hosted on third server - rdsh.domain.local, but the client of course doesn't know anything about it and does not have direct access to it.
in my program (rdp is an instance of AxMSTSCLib.AxMsRdpClient8):
rdp.Server = "connectionbroker.domain.local"; rdp.UserName = "mjakubowski"; rdp.Domain = "domain"; rdp.AdvancedSettings8.ClearTextPassword = txtPassword.Text; rdp.SecuredSettings3.StartProgram = "calc"; rdp.TransportSettings3.GatewayUsageMethod = 1; rdp.TransportSettings3.GatewayCredsSource = 0; rdp.TransportSettings3.GatewayProfileUsageMethod = 1; rdp.TransportSettings3.GatewayHostname = "gateway.domain.local"; rdp.AdvancedSettings8.LoadBalanceInfo = "tsv://MS Terminal Services Plugin.1.SOS"; rdp.Connect();
And it does not work, becouse it tries to connect to connectionbroker.domain.local, as the RDSH, instead of TS connection broker. When i change this code:
rdp.Server = "rdsh.domain.local"; rdp.UserName = "login"; rdp.Domain = "domain"; rdp.AdvancedSettings8.ClearTextPassword = txtPassword.Text; rdp.SecuredSettings3.StartProgram = "calc"; rdp.Connect();
.. and give user permission to interactive login - i have bare remote application in my rdp client's window.
My problem - how to get AxMsRdpClient8 to connect to the connection broker (treat server like a TS connection broker, rather than RDSH server - similar to "use redirection server name" in .rdp file)?