在远程PC上使用VB.NET运行可执行文件 [英] Run Executable using VB.NET on remote PC

查看:128
本文介绍了在远程PC上使用VB.NET运行可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,

我正在尝试构建一个程序,该程序将在远程计算机上运行可执行文件.

但基本上我希望能够登录,然后在远程PC的C驱动器上运行文件.我希望在.NET中有某种支持,使我能够使用RDP来做到这一点.
我试图避免编写服务器端程序.这就是为什么我要使用RDP的原因,因为那样我就可以连接Windows RDP的连接方式,然后编写代码以运行文件远程PC.

Hey,

I am trying to build a program that would run an executable on a remote computer.

But basically i want to be able to login and then run a file on the C drive of the remote PC. I was hoping there some sort of support in the .NET that allows me to use RDP to do this.
I am trying to avoid writing a SERVER side program. That why i want to use RDP because then I could just connect how windows RDP connect and then write code to run a file remote pc.

Any help would be nice

推荐答案

一种方法可能是使用WMI启动远程进程-请参见 ^ ].
One way could be to start a remote process using WMI - see Create a Remote Process using WMI in C#[^].


您可以在远程PC上启动进程,但不能启动INTERACTIVE进程,但前提是您的帐户代码在远程PC上模拟了一个管理员帐户.登录到远程PC的用户将永远不会看到远程程序可能建立的任何类型的用户界面.如果是这样,该应用程序将坐在那里等待永远不会出现的响应.

远程桌面需要对没有帐户默认访问权限的远程计算机具有更多权限.连接到远程PC所使用的帐户必须是远程PC上远程桌面用户"组的成员.即使这样,您也不能在不启动登录用户的情况下将桌面远程进入计算机.
You can launch processes on remote PC''s, but you cannot launch an INTERACTIVE process, but only if the account YOUR code impersonates an admin account on the remote PC. The user that is logged onto the remote PC will never see any kind of user interface the remote program may put up. If it does, the app will just sit there waiting for response that will never come.

Remote Desktop requires more permissions on the remote machine that no account has default access to. The account you connect to the remote PC with has to be a member of the Remote Desktop Users group on the remote PC. Even then, you cannot remote desktop into a machine without kicking off the user that logged in on it.


这篇关于在远程PC上使用VB.NET运行可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆