Scripting Blog [archived]

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

How Can I Tell If an OU Has Any User Accounts In It?

(image) Hey, Scripting Guy! How can I tell if an OU has any user accounts in it?-- RL(image) (image) (image) Hey, RL. As a matter of fact, there is a way to determine whether or not an OU contains any user accounts: all you have to do is search just that OU for nothing but user accounts. When you perform a search, any “hits” (in this ...

Can I Pin a File to the Start Menu by Using a Script?

(image) Hey, Scripting Guy! Can I pin a file to the Start Menu by using a script?-- ZD(image) (image) (image) Hey, ZD. For those of you who haven’t bought Windows XP yet (hey, what’s the matter with you; we Scripting Guys have families to feed!), by default XP’s Start Menu changes over time: the more you use an application, the more ...

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 ...

Can I Use a Script to Rename All the Files in a Folder?

(image) Hey, Scripting Guy! Can I use a script to rename all the files in a directory and include a "pl-" prefix plus the original file name?-- JP(image) (image) (image) Hey, JP. It’s interesting how many people need to do something similar: they need to rename all the files in a given folder, either by appending the date, changing the ...

How Can I Change the Internet Explorer Home Page?

(image) Hey, Scripting Guy! Can I change the Internet Explorer home page by using a script?-- AH(image) (image) (image) Hey, AH. It’s Monday morning, and after a hard weekend of sitting around watching football, we decided to take it easy this morning. Yes, you can change the Internet Explorer home page by using a script; all you have to...