Scripts from Chapter 8
Each of the scripts from Chapter 8 of Windows Management
Instrumentation may be found below along with a brief description of its
purpose. For a fuller explanation of what these scipts do and how they work,
please refer to the book.
Please note that some of these scripts may need tweaking before they will
work for you, as they make assumptions about the environment in which they
are running; the point of the scripts is to illustrate the book
rather than to provide general purpose utilities. Also, note that the scripts
are here provided "AS IS" without any warranty whatsoever. Furthermore, I am
sorry to say that time pressures preclude my being able to give technical
support relating to their use.
-
makeeventfilter.vbs.
Create an __EventFilter, configures it to receive notification of changes to Win32_Service objects and saves it in the repository.
-
logeventdelivery.vbs.
Registers to receive notification of new entries in the Event Log. Reports the first entry that occurs.
-
checkprovider.vbs.
Checks whether an Event Provider exists for a cmd-line specified target.
-
asynchronousnotification.vbs.
Connects to WMI and registers for asynchronous event notification. Blocks until user clicks "OK" and then cancels notification.
-
logmanydeliveries.vbs.
Registers to receive notification of new entries in the Event Log. Reports each entry that occur.
-
asynchronousregistration.vbs.
Connects to WMI and registers for asynchronous event notification.
-
monitorprocs.vbs.
Receives notification each time a process starts or stops.
-
diskspace.vbs.
Emails the administrator when hard disks on monitored machines become too full.
-
monitorprintserver.vbs.
Sets up permanent event subscription to monitor a print server and its printers.