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

[Webinar] Streamline your web hosting managementRegister Today

x
 
nauman_ahmedConnect With a Mentor Commented:
Look at the following post:

http://www.eggheadcafe.com/ng/microsoft.public.dotnet.languages.vb.controls/post20946725.asp

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

-Nauman.
0
 
rubemAuthor Commented:
got to the following address:
http://www.msnewsgroups.net/group/microsoft.public.dotnet.languages.csharp/topic1550.aspx

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

Good Luck
0
All Courses

From novice to tech pro — start learning today.