- System.Management provides tools to check system resources using WMI (Windows Management Instrumentation)
- ManagementObjectSearcher class is used to apply queries onto a system and retrieve useful information.
- This object uses ManagementScope to determine the system name and Login information, and ObjectQuery to determine the SQL-like query to be used.
- The Get( ) method invokes the query on the scope object and returns a ManaementObjectCollection.
- Usually the query is of the form like Select * from Win32_LogicalDisk or Select * from Win32_Service WHERE Started = FALSE
- ManagementEventWatcher class may be used to track and respond to events in the WMI context. (refer to Lab for specific example)
Showing posts with label WMI. Show all posts
Showing posts with label WMI. Show all posts
Sunday, July 26, 2009
Chapter 10-Lesson 4
Subscribe to:
Posts (Atom)