Guy
Recommends: Permissions Analyzer - Free Active Directory Tool
I like the
Permissions Monitor because it enables me to see quickly WHO has permissions
to do WHAT. When you launch this tool it analyzes a users effective NTFS
permissions for a specific file or folder, takes into account network share
access, then displays the results in a nifty desktop dashboard!
Think of all the frustration that this free utility saves when you are
troubleshooting authorization problems for users access to a resource.
You missed the first ' apostrophe - make sure you start at the
beginning of the line.
You execute the script a second time and get a Code 80071329
- Object Already Exists, WSH message box. The reason is that each
object must have a unique name. So if you created - say a user, you
cannot run the script again without either modifying a line in the script,
or deleting the first object.
The first section of the VBScript, sometimes referred to as the
header, states the purpose of the script and declares variables in Dim statements.
I like to start the script proper with Option Explicit because it forces
me to declare variables. My reasoning is this, Option Explicit alerts me to errors, it halts the script if I miss spell a variable, or use the singular colItem whereas I declared the plural colItems in the Dim statement.
When we move into the middle section of the script, WMI prepares the ground by connecting to the root\cimv2. In the example below, once objWMIService gets a handle on the namespace, we select DiskDrive from Win32_'s many objects.
Moving into
the final section, VBScript loops through all the properties that we are interested in, and finally Echoes the results to screen.
If you like this page then please share it with your friends
Windows Management Instrumentation (WMI) is one of the hidden
treasures of Microsoft operating systems.
Fortunately, SolarWinds
have created the
Free WMI Monitor so that you can actually see and understand these gems of
performance information. Take the guess work out of which
WMI counters to use for applications like Microsoft Active Directory,
SQL or Exchange Server.