C# 中的 RDP 控制台影子
我正在使用 MSTSCLib 编写一个应用程序来控制 4 台运行 Windows 7 或 Windows 2008 Server 的计算机。
这是我的应用程序:
public AxMSTSCLib.AxMsRdpClient6 rdp;
rdp.Server = txtServer.Text;
rdp.UserName = txtUserName.Text;
IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx();
secured.ClearTextPassword = txtPassword.Text;
rdp.DesktopHeight = 1024;
rdp.DesktopWidth = 1280;
rdp.Connect();
这4台电脑,控制4台发电机。
我需要从办公室计算机进行控制并保持会话活动,以便任何人都可以物理和远程使用这些计算机。我的意思是,如果我远程移动鼠标,位于计算机中的人就会看到鼠标移动。
我当前的情况是我的应用程序连接到远程计算机,但阻止与另一个人的会话。 (会话已被阻止,请按 CTRL + ALT-DEL)
搜索 Google,我认为我需要的是一种称为“远程会话影子”的东西。这是正确的吗?
我如何使用C#做到这一点?
我在这里找到了有趣的信息,可以完成与 MSTSCLib 一起使用吗?
I'm writing an application with MSTSCLib to control 4 computers with Windows 7 or Windows 2008 Server.
This my app:
public AxMSTSCLib.AxMsRdpClient6 rdp;
rdp.Server = txtServer.Text;
rdp.UserName = txtUserName.Text;
IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx();
secured.ClearTextPassword = txtPassword.Text;
rdp.DesktopHeight = 1024;
rdp.DesktopWidth = 1280;
rdp.Connect();
These 4 computers, control 4 power generators.
I need to control from an office computer and keep alive the session, so that anyone can use these computers, physically and remotely. I mean, if I move the mouse remotely, the person who is physically in the computer, see that the mouse moves.
My current situation is that my application connects to the remote machine, but blocks the session to another person. (The session has been blocked, press CTRL + ALT-DEL)
Searching Google, I think what I need is something called "Remote Session Shadowing." Is this correct?
How I can do this with C#?
I found an interesting information here, can be done with MSTSCLib?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我会避开 RDP,并使用一些开源解决方案,例如 TightVNC,请查看:
http:// /www.tightvnc.com/licensing.php
VNC 的设计具有您想要的功能。
I would steer away from RDP, and go with some open source solution such as TightVNC, please look at:
http://www.tightvnc.com/licensing.php
VNC has your desired feature by design.
不幸的是,似乎不再可能与 RDP“共享”会话,很可能是因为许可证共享预防措施。
这意味着在不注销另一个会话的情况下,不再可能登录“正在运行的会话”(用户已登录)。
这在 XP 中是可能的,但在 7 中就消失了(我猜服务器 2008 也是如此)。
您可能需要查看 Windows 远程协助,因为这是操作系统中内置的唯一可用选项。
除了 VNC 之外,您还可以查看 TeamViewer,我听说它效果很好。我不确定是否有可用的 API。
Unfortunatly it seems like it is no longer possible to "share" a session with RDP, most likely because of license sharing prevention measures.
This means it is no longer possible to log "into a running session" (user already logged in) without logging the other one off.
It was possible in XP, but its gone with 7 (and i'd guess server 2008 too).
You might want to look at Windows Remote Assistance because thats the only option available left which is built into the OS.
Besides VNC you can also check out TeamViewer, which, i have heard, works great. I am not sure if there is an API available though.