gpt4 book ai didi

c# - 使用 MSTSCLib 登录远程桌面

转载 作者:行者123 更新时间:2023-11-30 18:27:34 26 4
gpt4 key购买 nike

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

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com