Solved

Auto-login with Remote Desktop ActiveX control?

Posted on 2006-07-11
3
788 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

This is an explanation of a simple data model to help parse a JSON feed
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

757 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

19 Experts available now in Live!

Get 1:1 Help Now