Scripts from Chapter 5
Each of the scripts from Chapter 5 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.
-
checkowner.vbs.
Outputs the owner name of a file passed as a command-line parameter, or gives an error if it cannot do so.
-
showperms.vbs.
Displays all security information about a named file or directory.
-
ownerreallyshort.vbs.
Outputs the owner of c:boot.ini in a REALLY concise way!
-
listprocowner.vbs.
Lists the names and owners of all processes running on the local machine.
-
listprocowner2.vbs.
Lists names and owners of all processes running on the local machine/
-
ownernoLFO.vbs.
Retrieves the name of the owner of c:boot.ini without using Win32_LogicalFileOwner
-
encodethendecode.vbs.
Creates an AccessMask with Read, Write, Append and Delete permissions by using logical OR. Then decodes the mask with logical AND.