Scripting Blog [archived]

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

How Can I Determine the Next Available Drive Letter on a Computer?

(image) Hey, Scripting Guy! How can I determine the next available drive letter on a computer?-- TW(image) (image) (image) Hey, TW. Interesting question, and one that crops up from time-to-time. In the old days, when users only had drives A, B, and C, this was easy; you could pretty much guess that any drive letter other than those three ...

How Can I Find and Move an Active Directory Computer Account?

(image) Hey, Scripting Guy! I need to move a computer account from one OU to another; however, I don’t know which OU the computer account is currently in. Any advice?-- AA(image) (image) (image) Hey, AA. You know, one thing that marks all the great advice columns - Dear Abby; Ann Landers; Hey, Scripting Guy! - is the fact that, over time...

How Can I Tell Which Switches Were Used When Starting an Executable File?

(image) Hey, Scripting Guy! Is there any way to tell which command-line arguments (if any) were used when starting an executable file?-- TO(image) (image) (image) Hey, TO. We don’t mean to cause a scandal in the scripting world - well, OK, we don’t mean to cause any more scandals in the scripting world. But - gasp! - we’re going to ...

How Can I Change the Caption for the My Computer Icon?

(image) Hey, Scripting Guy! Instead of having the My Computer icon on the desktop read My Computer, I’d like to replace that with the name of the computer. Can I do that using a script?-- TG(image) (image) (image) Hey, TG. We get asked this question quite a bit; apparently a lot of you find it convenient to have the computer name right ...

How Can I Make a Read-Only File Writeable?

(image) Hey, Scripting Guy! Is it possible to use a script to change the read-only attribute of a file?-- ZO(image) (image) (image) Hey, ZO. Of course, you can do this; the FileSystemObject can do anything! Well, OK, it can’t do either of those things. And, no, it can’t do that, either. But it can change a read-only file to a writeable...