Solved

Auto-login with Remote Desktop ActiveX control?

Posted on 2006-07-11
3
789 Views
Last Modified: 2013-11-25
Hi, everyone!

I'm in dire need of assistance with automating a TS web connection on my intranet - basically, when the user clicks "Connect", I'd like to have the username and password automatically sent so that the user doesn't have to type anything, it just logs them in. On MSDN, it indicates that there is a "put_CleartextPassword" property that can be used (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/imsrdpclientadvancedsettings4_cleartextpassword.asp).

Simply put, I just don't know how to work with COM objects that well. Some sample Remote Desktop automation scripts have appeared for similar things on EE(http://www.experts-exchange.com/Programming/Q_20571235.html), but none appear to send the password.

Your assistance is appreciated!
0
Comment
Question by:ERIAMJH
3 Comments
 
LVL 9

Accepted Solution

by:
Hypnochu earned 500 total points
ID: 17195013
In VB6 the following should work

      RDPControl.Server = <server name or address>
      RDPControl.Domain = <domain>
        RDPControl.Username = <user name>
      RDPControl.AdvancedSettings2.ClearTextPassword = <password>
        RDPControl.Connect

In logon settings in Terminal Services Configuration on the server, make sure that "Always prompt for password" is unchecked, otherwise the user will always be prompted for a password whether you send it or not.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now