Click to Rate and Give Feedback
MSDN
MSDN Library
WMI Reference
WMI Classes

  Switch on low bandwidth view
Standard Consumer Classes

The following table lists the classes for WMI preinstalled permanent consumers. You can create instances of these classes to provide the permanent consumer class to supply the logical consumer that responds when triggered by the events specified in the filter. For example, use the ActiveScriptEventConsumer class to define the script that executes when a specified event occurs.

For more information, see Monitoring and Responding to Events with Standard Consumers and Monitoring Events.

ClassDescription
ActiveScriptEventConsumerExecutes a predefined script in an arbitrary scripting language when an event is delivered to it. This consumer is available on Windows XP and Windows 2000.

Example: Running a Script Based on an Event

ScriptingStandardConsumerSettingProvides registration data common to all instances of the ActiveScriptEventConsumer class.
LogFileEventConsumerWrites customized strings to a text log file when events are delivered to it. This consumer is available on Windows XP.

Example: Writing to a Log File Based on an Event

NTEventLogEventConsumerLogs a specific message to the Windows NT event log when an event is delivered to it. This consumer is available on Windows XP.

Example: Logging to NT Event Log Based on an Event

SMTPEventConsumerSends an e-mail message using SMTP each time an event is delivered to it. This consumer is available on Windows XP and Windows 2000.

Example: Sending Email Based on an Event

CommandLineEventConsumerLaunches an arbitrary process in the local system context when an event is delivered to it. This consumer is available on Windows XP.

Example: Running a Program from the Command Line Based on an Event

 

See Also

Monitoring Events
Receiving Events At All Times
Running a Script Based on an Event
Sending E-mail Based on an Event

Send comments about this topic to Microsoft

Build date: 6/15/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker