Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I List All the User Profiles on a Computer?

(image) Hey, Scripting Guy! How can I list all the user profiles on a computer? -- GN (image) Hey, GN. You want to know a secret? We hate questions about user profiles. It’s not that we have anything against user profiles. The problem is that user profiles represent an important part of a system administrator’s duties, and ...

How Can I Retrieve the Path to the %windir% Folder on a Computer?

(image) Hey, Scripting Guy! How can I retrieve the path to the %windir% folder on a computer?-- DS(image) (image) (image) Hey, DS. Interesting that you should ask this question. This same question happened to be asked on an internal Microsoft mailing list just the other day, and the answer given (not by one of the Scripting Guys we hasten ...

How Can I Create a Shortcut in My Network Places?

(image) Hey, Scripting Guy! How can I create a shortcut in My Network Places?-- KP(image) (image) (image) Hey, KP. You’ll have to excuse us if we sound a little out of breath; we’ve been running around like crazy looking for a complicated and highly-technical solution to this problem. It was only after we failed miserably in that quest...

How Can I Add a Site to Internet Explorer’s Restricted Sites Zone?

(image) Hey, Scripting Guy! How can I add a site to Internet Explorer’s Restricted Sites zone on a remote computer?-- NS(image) (image) (image) Hey, NS. When it comes to scripting, Internet Explorer has a sort of dual personality. If you want to program the application itself, well, you came to the right place: Internet Explorer’s ...

How Can I Determine Which Version of Internet Explorer is Installed on a Computer?

(image) Hey, Scripting Guy! How can I determine which version of Internet Explorer is installed on a computer?-- MG(image) (image) (image) Hey, MG. Probably the best (and definitely the easiest) way to do this is to use WMI; after all, using WMI makes it as easy to get this information from remote computers as it is to get it from the ...