远程计算机上的进程信息 [英] Process Information on Remote Computer

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

问题描述

我写一个小程序来获取服务和远程计算机上运行的进程列表,一切都运行良好。我使用的工艺过程RET列表,并为ServiceController的服务清单。现在反正是有得到在远程计算机上运行,​​实际上找到与进程相关联的文件的大小进程的大小?


解决方案

要执行远程管理功能,通常情况下,正确的答案是使用WMI





和使用类型 System.Management 与WMI从.NET交互。 本页面包括一个简单的例子。



我会建议使用WMI进行远程和本地信息—避免两套代码保持


I am writing a small program to retrieve list of services and processes running on a remote computer, all is running well. I am using Process for ret list of processes and ServiceController for list of services. Now is there anyway to get the size of the processes that are running on remote pc and actually find the size of the file associated with the process?

解决方案

To perform remote administration functions, usually, the right answer is to use WMI.

And using types in System.Management to interact with WMI from .NET. This page includes a simple example.

I would suggest using WMI for both remote and local information—avoiding two sets of code to maintain.

这篇关于远程计算机上的进程信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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