我正在尝试在远程桌面上登录。我可以使用以下代码打开登录屏幕。 (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/