Solved

Auto-login with Remote Desktop ActiveX control?

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is an explanation of a simple data model to help parse a JSON feed
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 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