我正在尝试在远程桌面上登录。我可以使用以下代码打开登录屏幕。 (rdpSP是Microsoft终端服务器客户端控件-版本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();
现在,我可以看到登录屏幕和用户域/用户名。但是未使用密码。
是否可以自动登录或至少填写密码?
最佳答案
密码应以rdpSP.AdvancedSettings9.ClearTextPassword
的形式保存
关于c# - 使用MSTSCLib登录到远程桌面,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26421368/