Scripting Blog [archived]

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

How Can I Tell Whether a Computer has a Specific CD in It?

(image) Hey, Scripting Guy! How can I tell whether or not a computer has a CD named MyApps in it?-- CB(image) (image) (image) Hey, CB. You know, this is one of those questions that the Scripting Guys almost feel bad about answering. Why? Well, at first glance this sounds like it might be a really complicated problem to solve; as it turns ...

How Can I Distinguish Between Local Users and Domain Users?

(image) Hey, Scripting Guy! When using a script to return members of the local Administrators account, how can I distinguish between local users and domain users?-- KS(image) (image) (image) Hey, KS. You know, many years ago there was a TV game show called What’s My Line? The premise of the show was that some person with an unusual ...

How Can I Create a Table and Fill the First Column With a Range of Dates?

(image) Hey, Scripting Guy! How can I create a table and automatically fill the first column in that table with a range of dates?-- DG(image) (image) (image) Hey, DG. You know, back in the old days we would have been a bit nervous about answering this question. Why? Well, it seems like Word should have a built-in command for doing ...

How Can I List All the Files on a User’s Desktop?

(image) Hey, Scripting Guy! How can I list all the files on a user’s desktop?-- BT(image) (image) (image) Hey, BT. So you thought you could fool the Scripting Guys, did you? Well, you did, at least for awhile. As is so often the case with the Scripting Guys we took one look at your question and thought, “Let’s answer this one; this ...