Scripting Blog [archived]

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

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