Friday, July 4, 2008

Windows management Instrumentation .NET

WMI - To monitor and manage System, application and devices using Windows Management Instrumentation


Detecting Management Event

  • WMI is a component of the Windows operating system that provides monitoring functionality that spans virtually every machine resource.
  • The EventQuery class is used within the .NET Framework to represent a WMI query.
  • The Win32_Service object can be used to query information about Windows services.
  • The ManagementQuery base class is used as a foundation for all management query objects.
  • The ManagementObjectSearcher is used to query system resources through WMI.
Which of the following items cannot be queried via WMI?
Network adapters.
Logical drives on a machine
A list of OleDb-compliant databases on the network
A list of Windows Services on a machine and their respective states



Image from book

Answers



Correct Answer: C

Incorrect: Network Adapters can be discovered using WMI.
Incorrect: Logical drives can be discovered and interrogated using WMI.
Correct: Although some database information can be retrieved using WMI, a list of all OleDb-compliant databases cannot be determined using the WMI query syntax
Incorrect: A list of Windows Services running on a machine, and their respective states, can be queried via WMI.

No comments: