杀死远程服务器上的进程

杀死远程服务器上的进程

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

问题描述

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

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

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


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


- 重启远程服务器


谢谢你的帮助

解决方案




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



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

解决方案


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.


VB

Expand|Select|Wrap|Line Numbers


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

08-31 04:36