Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Laptops, Defining and Querying ...

Status
Not open for further replies.

Vern007

MIS
May 2, 2002
5
US
I have thought about trying to find a decent way of determining if a machine is a laptop. I have seen several methods for getting info from the registry etc... but was wondering if anyone has had success with this method via modifying the sms_def.mof

I'm thinking of adding the "ChassisTypes" property in the Win32_SystemEnclosure class of my sms_def.mof

As long as the PC is WMI 1.5 I should then be able to get a value corresponding to the chassis type

1 Other
2 Unknown
3 Desktop
4 Low Profile Desktop
5 Pizza Box
6 Mini Tower
7 Tower
8 Portable
9 Laptop
10 Notebook
11 Hand Held
12 Docking Station
13 All in One
14 Sub Notebook
15 Space-Saving
16 Lunch Box
17 Main System Chassis
18 Expansion Chassis
19 SubChassis
20 Bus Expansion Chassis
21 Peripheral Chassis
22 Storage Chassis
23 Rack Mount Chassis
24 Sealed-Case PC

I could then query and make collections based on the values 8, 9, 10 etc...

Has anyone tried this and had any success with this method? Just wondering before I give myself some headaches.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top