Skip to content

Script Details

July 2, 2008

I just wrote the ScriptDetails function today, I wanted better information in the Application Log regarding what script executed, where was it located, and who executed it. This information is then passed back to the LogData procedure to be input into the Application Log.

The functions accepts one parameter:

  • strComputer

strComputer

This function takes advantage of the Wscript object to return the name of the script in memory, and its fully qualified path. Then it uses WMI to connect to the computer, it uses the value in strComputer to return the username of the user currently running this script.

Advertisements

From → Scripting

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: