Scripting Blog [archived]

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

How Can I Determine the Current Screen Resolution Being Used on a Computer?

(image) Hey, Scripting Guy! How can I determine the current screen resolution being used on a computer? You know, things like 1600x1200 resolution, 16-bit color, that kind of information.-- FE(image) (image) (image) Hey, FE. Remember when you were a kid and your mom would have that annoying habit of beginning a discussion by answering the ...

How Can I Determine Which USB Devices are Connected to a Computer?

(image) Hey, Scripting Guy! How can I determine which USB devices are connected to a computer?-- WM(image) (image) (image) Hey, WM. If you watch a lot of TV - um, not that the Scripting Guys do; we spend our spare time reading the works of Shakespeare, solving differential equations, and otherwise tending to our many intellectual pursuits...

How Can I Determine if a Computer is a Laptop or a Desktop Machine?

(image) Hey, Scripting Guy! Is there any way to use WMI to determine whether a computer is a laptop or a desktop machine?-- CB(image) (image) (image) Hey, CB. You bet there is, although if you didn’t know that we have no idea how you’d figure it out on your own. It turns out there’s a goofy little WMI class called Win32_SystemEnclosure...