Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Change the Legal Warning Message Using a Script?

(image) Hey, Scripting Guy! How can I use a script to change the legal warning message on a computer?-- RB(image) (image) (image) Hey, RB. As you all probably know, when you press Ctrl-Alt-Delete to log on to Windows, you’re typically presented with a logon box. You type your user name, domain, and password in the box, click OK, and away...

How Can I Determine the Account a Process is Running Under?

(image) Hey, Scripting Guy! I’ve got a script that returns information about all the processes running on a computer, except I can’t seem to figure out how to get the name of the user account that these processes are running under. Can you help?-- DL(image) (image) (image) Hey, DL. Yes, we can help. It’s actually fairly easy to ...

Can I Create and Delete a DSN Using a Script?

(image) Hey, Scripting Guy! Is it possible to create an ODBC Data Sources Name (DSN) on the fly and then remove it when done?-- KC(image) (image) (image) Hey, KC. Is it possible to create and then delete an ODBC DSN? To tell you the truth, we weren’t entirely sure. As it turns out, however the answer is this: as long as you’re willing ...

How Can I Tell Which Scripts are Running on a Computer?

(image) Hey, Scripting Guy! How can I tell which scripts are running on a computer?-- NW(image) (image) (image) Hey, NW. This is a question we’re always a little reluctant to answer, because there’s a 50-50 chance you’ll be disappointed with what you hear. If you are running Windows 2000 (or a previous version of Windows), the answer...