The WMI Event Model

So far, from the perspective of a systems administrator, it might seem as though WMI is a somewhat passive web of classes and objects that sit quietly in a repository, dormant until an administrator accesses them, or in some cases coming into being only when the Object Manager tells a provider to create them. Although it is certainly possible to think of WMI in those terms and to treat WMI objects merely as a convenient interface to Windows management, to do so is to ignore one of the most exciting aspects of the WMI system—event notification.

Far from being static, the web of associations and objects that make up WMI form a constantly changing flux: objects are constantly created and destroyed, their properties vary, and ...

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.