WMI Consumer

The WMI Consumers component includes several Windows Management Instrumentation (WMI) event consumer classes, which provide prepackaged event-processing functionality. For example, the SMTPEventConsumer class sends an e-mail message using SMTP each time an event is delivered to it. Another standard consumer executes a predefined script in an arbitrary scripting language whenever an event is delivered to it. Yet another standard consumer, the NTEventLogEventConsumer class, logs a specific message to the Windows NT event log whenever an event is delivered to it.

This component includes the following standard consumer classes:

  • Scripting event consumer (ActiveScriptEventConsumer). Implements a WMI class, which executes a predefined script in an arbitrary scripting language whenever an event is delivered to it.
  • Log file event consumer (LogFileEventConsumer). Writes customized strings to a text log file whenever events are delivered to it. The strings are separated by end-of-line sequences.
  • NT event log consumer (NTEventLogEventConsumer). Logs a specific message to the Windows NT event log when an event is delivered to it. The NTEventLogEventConsumer class requires that the message text of all entries be placed in a message DLL which must be installed on the system where the events are to be logged.
  • Command line event consumer (CommandLineEventConsumer). Launches an arbitrary process in the local system context whenever an event is delivered to it.
  • SMTP consumer (SMTPEventConsumer). Sends an e-mail message using SMTP each time an event is delivered to it. An SMTP server must exist on the network. The SMTPEventConsumer class does not support attachments.

In many cases, these prepackaged event consumers eliminate the need to develop custom WMI consumers.

This component includes the following files:

  • Scrcons.exe. ActiveScriptEventConsumer
  • Smtpcons.dll. SMTPEventConsumer
  • Wbemcons.dll. CommandLineEventConsumer, NTEventLogEventConsumer, LogFileEventConsumer

Component Configuration

There are no configuration requirements for this component.

For More Information

For more information about this component, see this Microsoft Web site.

]]>
%11%\wbem scrcons.exe False File MSVCRT.dll File ADVAPI32.dll File KERNEL32.dll File USER32.dll File ole32.dll File OLEAUT32.dll %11%\wbem smtpcons.dll False File WSOCK32.dll %11%\wbem wbemcons.dll False File wbemdisp.dll File winmgmt.exe File gdi32.dll File ntdll.dll File rpcrt4.dll File ws2_32.dll /register False False %11%\wbem\scrcons.exe 0 0 False True %11%\wbem\smtpcons.dll 0 0 False True %11%\wbem\wbemcons.dll 0 0 File netapi32.dll File authz.dll WMI Consumers 1.0 These are WMI event consumers that can be used when wmi events are surfaced. 2000 Microsoft Corp. Microsoft Corp. vladj vladj; shbrown 10/31/2000 11/2/2001 12:42:33 AM