在Windows网络中启动远程进程 [英] Starting remote processes in a Windows network

查看:185
本文介绍了在Windows网络中启动远程进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个从属计算机和一个主计算机,它们一起运行分布式应用程序。每个从属计算机上的进程都必须具有GUI和网络访问权限(我认为这将被称为交互式进程)。为了易于使用,如果主计算机可以启动/停止这些从计算机上的进程,那就太好了。

I have several slave machines and a master machine which together run a distributed application. Processes on each slave machine have to have a GUI and network access (I think it would be called an interactive process then). For ease of use it would be nice if the master machine could start/stop the processes on those slave machines.

我的第一个想法是使用WMI和Win32_Process类来启动远程进程,但经过进一步调查,人们认为以这种方式启动的进程是非交互式且隔离的,因此不能具有任何GUI。一条便条说可以使用Win32_ScheduledJob.Create创建一个远程交互式进程,但是该进程在LocalSystem帐户下运行,我想避免使用它(我什至无法使其正常运行)。

My first idea was to use WMI and the Win32_Process class to start a remote process but upon further investigation it was reveiled that processes started this way are non-interactive and isolated, and thus cannot have any GUI. A note says that one can use Win32_ScheduledJob.Create to create a remote interactive process, but it runs under the LocalSystem account which I would like to avoid (also I couldn't even get it to run properly).

什么是解决此问题的好方法?
也许可以启动一个助手应用程序,这反过来又会启动一个正确的过程,但这似乎很脏。

What would be good ways to solve this problem? Maybe it is possible to launch a helper application which in turn starts a proper process, but that seems quite dirty.

编辑:当我使用PsExec时,它确实很笨重尝试了一下,然后慢下来了(不确定为什么)。进一步查看PsExec,似乎它在远程计算机上安装了一个临时服务来启动该应用程序。这是使用适当的身份生成交互过程的唯一方法吗?我应该在节点的设置中包括帮助服务吗?但是,即使那样,那我该如何与之通信呢?

PsExec was really clunky when I tried it and slow as hell (not sure why). Looking further at PsExec it seems it installs a temporary service on the remote machine to launch the application. Would this be the only way to spawn an interactive process using a proper identity? Should I include a helper service in the setup for the nodes? But even then, how would I communicate with it then?

推荐答案

PsExec是sysinternals套件的一部分,可以做到这一点

PsExec is part of the sysinternals suite that can do that

http:// technet .microsoft.com / en-us / sysinternals / bb897553.aspx

如果服务器运行的是Windows 2008,则也可以使用

If your servers are running windows 2008 you can also use

终端服务远程应用

这篇关于在Windows网络中启动远程进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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