杀死远程服务器上的进程 [英] Kill process on remote server

查看:706
本文介绍了杀死远程服务器上的进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个监控服务器的应用程序。

i编写的代码可以让我在远程服务器上运行所有进程,但我无法获得代码来杀死远程进程。

可以帮助我或提供任何人我用一个代码执行以下操作:


- 杀死一个远程进程(我已经编写了一个代码来检索远程服务器上所有正在运行的进程)


- 重启远程服务器


谢谢你的帮助

解决方案

重启远程服务器即可用关闭完成过程。

(查看msdn的用法)


至于杀死一个远程进程,我不知道怎么做,除非''和你可以做的RPC调用一样。或者在每台计算机上放置一些监听器程序并等待您的特殊命令,从而终止所需的进程。但这是一个很大的安全性hubub。



重启远程服务器可以通过shutdown来完成。过程。

(查看msdn的用法)


至于杀死一个远程进程,我不知道怎么做,除非''和你可以做的RPC调用一样。或者在每台计算机上放置一些监听器程序并等待您的特殊命令,从而终止所需的进程。但那是一个很大的安全枢纽。



这听起来像是WMI的主要候选人。 Windows Management Instrumentation允许您进入幕后并启动/停止服务,启动/停止进程等。我有代码在某处执行此操作,我会把它挖出来......然后再回复您。 / blockquote>


重启远程服务器可以通过shutdown来完成。过程。

(查看msdn的用法)


至于杀死一个远程进程,我不知道怎么做,除非''和你可以做的RPC调用一样。或者在每台计算机上放置一些监听器程序并等待您的特殊命令,从而终止所需的进程。但那是一个很大的安全枢纽。



VB

展开 | 选择 | Wrap | 行号


i am building an application to monitor servers.
i have written code that gets me all running processes on remote server, but i cant manage to get a code to kill a remote process .
can any one help me or provide me with a code that does the following:

- kill a remote process ( i have already written a code to retreive all running processes on remote server)

- restart a remote server

and thank you for ur help

解决方案

restarting a remote server can be done with the"shutdown" proccess.
(check msdn for usage)

As for killing a remote process, I''m not sure how to do that, unless there''s like and RPC call that you can do. OR wirte some listener program that sits on each computer and waits for your special command kills off the desired process. But that''s kind of a big security hubub.


restarting a remote server can be done with the"shutdown" proccess.
(check msdn for usage)

As for killing a remote process, I''m not sure how to do that, unless there''s like and RPC call that you can do. OR wirte some listener program that sits on each computer and waits for your special command kills off the desired process. But that''s kind of a big security hubub.

This sounds like a prime candidate for WMI. The Windows Management Instrumentation allows you to go in behind the scenes and start/stop services, start/stop processes etc. I have the code to do this somewhere, I''ll dig it out...and get back to you.


restarting a remote server can be done with the"shutdown" proccess.
(check msdn for usage)

As for killing a remote process, I''m not sure how to do that, unless there''s like and RPC call that you can do. OR wirte some listener program that sits on each computer and waits for your special command kills off the desired process. But that''s kind of a big security hubub.

VB

Expand|Select|Wrap|Line Numbers


这篇关于杀死远程服务器上的进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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