Showing results for basic hardware and firmware - Scripting Blog [archived]

Sep 21, 2004
1
0

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

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there any way to use WMI to determine whether a computer is a laptop or a desktop machine?-- CB 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, and the ChassisTypes property can tell yo...

Scripting Guy!VBScripthardware