Forcing the Remote Desktop option in TS Web Access to use TS Gateway

Step1:  Fix DefaultTSGateway param in IIS Site Application Settings:

rdiis

Step 2: Change BtnConnect() proc gateway param in Desktops.aspx file (only bold line). Desktops.aspx file found in C:\Windows\Web\RDWeb\Pages\<locale> directory (eg. hu-HU or en-US):

function BtnConnect()
 {
 var RDPstr = "full address:s:" + GetParam("MachineName", true, "") + "\n";
 RDPstr += "authentication level:i:2\n";
 RDPstr += "gatewayhostname:s:" + DefaultTSGateway + "\n";
 RDPstr += "gatewaycredentialssource:i:" + GatewayCredentialsSource + "\n";
 if ((DefaultTSGateway != null) && (DefaultTSGateway.length > 0)) {
 RDPstr += "gatewayusagemethod:i:1\n";
 RDPstr += "gatewayprofileusagemethod:i:1\n";
 }
 else {
 RDPstr += "gatewayusagemethod:i:2\n";
 RDPstr += "gatewayprofileusagemethod:i:0\n";
 }

Step 3:
Restart site.

Done 😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s