远程计算机上的进程信息 [英] Process Information on Remote Computer
问题描述
我写一个小程序来获取服务和远程计算机上运行的进程列表,一切都运行良好。我使用的工艺过程RET列表,并为ServiceController的服务清单。现在反正是有得到在远程计算机上运行,实际上找到与进程相关联的文件的大小进程的大小?
要执行远程管理功能,通常情况下,正确的答案是使用WMI
- 的
的Win32_Process
类>过程的信息。 - 的
win32_service时
类的服务。
和使用类型 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.
Win32_Process
class for process information.Win32_Service
class for services.
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屋!