The WMI Scripting API

As noted earlier, WMI classes and objects exist only within the world of WMI itself. Within this world, Win32_Process, CIM_DataFile, and DS_Computer objects are all completely different. They all have different properties and methods, and they all represent very different parts of a computer system. As far as the scripting API is concerned, however, every single WMI object is essentially the same. Each is an instance of SWbemObject. Each has a common set of properties and methods exposed by the SWbemObjectinterface. Only through SWbemObject's methods can we discover what each instance represents in WMI terms.

Note: WMI Objects in COM

It is not only the scripting interface that sees all WMI objects as instances of the same ...

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.