Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
3,224 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We are trying to create a Windows Forms Application that will connect to RDS through a Gateway. How can this be achieved? We have tried the following:
rdp.Server = server;
rdp.UserName = username;
rdp.Domain = domainName;
rdp.AdvancedSettings8.LoadBalanceInfo = "tsv://MS Terminal Services Plugin.1.OFSC_Primary_Col";
rdp.TransportSettings3.GatewayHostname = gatewayHostname; //FQDN
rdp.TransportSettings3.GatewayProfileUsageMethod = 1;
rdp.TransportSettings3.GatewayCredsSource = 0;
rdp.TransportSettings3.GatewayUsageMethod = 1;
rdp.TransportSettings3.GatewayDomain = "ofsc";
rdp.TransportSettings3.GatewayUsername = username;
rdp.TransportSettings3.GatewayPassword = password;
rdp.AdvancedSettings7.EnableCredSspSupport = true;
rdp.AdvancedSettings8.NegotiateSecurityLayer = true;
rdp.AdvancedSettings7.AuthenticationLevel = 0;
rdp.ColorDepth = 16;
rdp.DesktopWidth = 1024;
rdp.DesktopHeight = 720;
rdp.Connect();
It just doesn't work. No errors, just a white screen when the app is run. If I omit the username and password, it prompts for username and password, but never does anything after collecting it.