Solved

Auto-login with Remote Desktop ActiveX control?

Posted on 2006-07-11
3
808 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
convert Systemjs to Webpack 3 125
learn programming 8 94
$_GET call between URL 3 67
MCAT Verbal Reasoning 2 21
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

732 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