Querying WMI

  • Alexander Golomshtok


You will find that navigating through the CIM object model is not always straightforward and often requires rather elaborate coding. When you know the identity of a WMI object in question in advance, you can bind to it by just instantiating a Management0bject with an appropriate object path parameter. The situation is different, however, if a criterion for retrieving the WMI object is not based on the object’s identity but rather on its other, non-key properties. For instance, if you are charged with the task of compressing all files that exceed 10 MB in size on a given system, you may crank out the following code:


Query Language Association Class Select Statement Structure Query Language Data Query 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Alexander Golomshtok 2003

Authors and Affiliations

  • Alexander Golomshtok

There are no affiliations available

Personalised recommendations