Representation of Processes in WMI
Having discussed the principles and techniques involved in implementing scripts that invoke WMI on remote machines, it seems appropriate to illustrate situations in which this can be useful, and develop some scripting techniques that can help with successful remote administration of multiple machines. As an example of a facet of a computer system that could usefully be managed remotely, we take a process—a program running on a remote computer.
Processes are represented in WMI by instances of the Win32_Process class. This is derived from CIM_Process, which in turn is derived from CIM_LogicalElement, which we have met several times already. The primary key of a Win32_Process object is its Handle property; this ...
Get Windows Management Instrumentation (WMI) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.