Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Auto-login with Remote Desktop ActiveX control?

Posted on 2006-07-11
3
Medium Priority
?
819 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 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

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.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

609 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