Say you want to provision some settings only on all laptops in your corporate domain. The problemthough is, how do you identify which computers ones are laptops?
WMI Class win32_systemEnclosure has a property - ChassisTypes. ChassisTypes is 9 in a laptop.
Addtion based on reader feedback: ChassisTypes might not be 9 always, on some machines you'll see 8 (portable), 9 (notebook) as well. It is also a good idea to look for batteries as well using win32_battery class.
Data type: uint16 array
Access type: Read-only
Array of chassis types. This property is inherited from CIM_Chassis.
Low Profile Desktop
All in One
Main System Chassis
Bus Expansion Chassis
Rack Mount Chassis
Details on win32_systemenclosure
Kapil Mathur [MSFT]