Scripts from Chapter 9
Each of the scripts from Chapter 9 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.
-
services.vbs.
Lists services and reports whether or not they are running.
-
service-events.vbs.
Go "ping" within 10 seconds of a service starting or stopping. Must be run with wscript, not cscript.
-
usersinanou.vbs.
Displays the name of every user that resides in Peter Icraces's OU.
-
membersofanou.vbs.
Displays the name of every object that resides in Peter Icraces's OU.
-
allcommonnamesagain.vbs.
Displays the names of all users in an Active Directory, using WMI.
-
bulkoperate.vbs.
Connects to the WMI service of each machine in a domain in turn, so that WMI operations may be performed.
-
showproperties.vbs.
Displays the names and values of all the properties of an object whose object path is given as a command-line parameter.
-
aboutpeter.vbs.
Uses ADSI to provide reader with a little information about fictitious user Peter Icraces.
-
allcommonnames.vbs.
Displays the names of all users in an Active Directory.