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

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.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

nauman_ahmedConnect With a Mentor Commented:
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.
rubemAuthor Commented:
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.
rubemAuthor Commented:
found the answer... I need to initialize the axMsTscAx1.AxMsRdpClient .. which has the method exposed under AdvancedSettings2.. thanks for your help.
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

rubemAuthor Commented:
got to the following address:

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

Good Luck
All Courses

From novice to tech pro — start learning today.