I am trying to log in on a remote desktop. I am able to open the login screen with the following code. (rdpSP is a Microsoft Terminal Server Client Control - version 1)
rdpSP.Server = "the IP";
rdpSP.Domain = "the domain";
rdpSP.UserName = "the username";
MSTSCLib.IMsTscNonScriptable secured = (MSTSCLib.IMsTscNonScriptable)rdpSP.GetOcx();
secured.ClearTextPassword = "the password";
rdpSP.Width = this.Width;
rdpSP.Height = this.Height;
rdpSP.Connect();
Now I can see the login screen and the user domain/username. But the password isn't used. Is it possible to log in automaticly or at least fill in the password?
The password should be saved in the form rdpSP.AdvancedSettings9.ClearTextPassword
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With