500 Points: Automatic terminal server logon via activex RDP client component.

Posted on 2005-05-02
Last Modified: 2008-01-09
I would like to know how to implement the "password" portion of the MSTSCLib.IMsTscNonScriptable interface. I have already inplemented the code that connects to the terminal server, but the interface IMsTscNonScriptable was purposely separate from the main class, so it could not be called from a script.  Please if possible, give the whole piece of code that does the job of connecting to the terminal server. Thanks for any help.
Question by:rubem
    LVL 25

    Accepted Solution

    Look at the following post:

    I think you need to set the MsRdpClient.AdvancedSettings2.ClearTextPassword = "******"  

    Its good to look at the following properties too:

    Property Let ClearTextPassword(RHS As String)

    Property Let ClearTextPassword(RHS As String)

    property clear text password (write only)

    Best, Nauman.

    Author Comment

    thanks for the link... it will help me steer into a solution. But it still does not say exactly what class I need to instantiate. Also the advancedsettings2 is not exposed in my class, so I may be calling the wrong one.

    Author Comment

    found the answer... I need to initialize the axMsTscAx1.AxMsRdpClient .. which has the method exposed under AdvancedSettings2.. thanks for your help.
    LVL 25

    Expert Comment

    How did you add the RDP client, are you using VB.NET or C#? I tried adding the client on to the form but get the error for converting the ActiveX control to the .NET type


    Author Comment

    got to the following address:

    It will explain how to "Fix" Microsoft actixeX control.

    Good Luck

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    779 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

    15 Experts available now in Live!

    Get 1:1 Help Now