Scripts from Chapter 6
Each of the scripts from Chapter 6 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.
-
archivewithdelegation.vbs.
Makes a backup and clears all Event Logs on a command-line specified computer. Backs up to a command-line specified archive share. Optionally only backs up if a cmd-line specified threshold has been reached. This version works!
-
loginfo.vbs.
Displays information about the overwrite policy and registered sources for each Event Log on a computer.
-
featurereport.vbs.
Creates a report listing all products and features installed on a set of workstations whose names or IPs are specified in a file.
-
archivelogs.vbs.
Makes a backup and clears all Event Logs on a command-line specified computer. Backs up to a command-line specified archive directory. Optionally only backs up if a cmd-line specified threshold has been reached. This script serves a pedagogical purpose but does not work.
-
productreport.vbs.
Creates a simple report listing all products installed on a machine under the control of the Windows Installer.
-
simplelogreport.vbs.
Lists the source and message of each error entry in system log.