Previous Section Table of Contents Next Section

Running Your First Script

Double-clicking WhoHas.vbs should execute it in WScript. First, you'll be asked which server you want to connect to. Provide the server name, making sure you have administrative permissions on that server (the script will be using your user credentials to access the server). Next, provide the complete path and filename of the file you want to check.

For example, suppose a folder on the server, named D:\Shares\Sales, is shared as Sales. A user is accessing a file named \\Server\Sales\SalesGoals.doc, and you want to find out which user it is. You'd type D:\Shares\Sales\SalesGoals.doc, because that's the server-local path to the file.

When you click OK…whoops! There's an error on line 10 (or another line, depending on how you typed the script)! That's not good! Looks like you're ready to start debugging your first script.

    Previous Section Table of Contents Next Section