Solved

How to Identify Devices as Laptops in Registry

Posted on 2004-09-23
4
660 Views
Last Modified: 2007-12-19
As we attempt to improve our remote inventory process, we are looking for a way to identify those Windows devices that are laptops. In WinNT and Win2K, the key SYSTEM\CurrentControlSet\Control\IdConfigDB had a value name of IsPortable that seemed to work, but that key is not persent in XP. The key  HKEY_LOCAL_MACHINE\System\ CurrentControlSet\ Services\ Pcmcia\Enum is though, and while there could be desktop systems with PCMCIA devices, I think they are the exception.

Is anyone aware of a more definitive manner to identify a device as a laptop by querying the registry?

Thanks,
Jeff
0
Comment
Question by:jpetter
  • 2
  • 2
4 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 12131910
This site has a great WMI script to determine that...
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0921.mspx

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colChassis = objWMIService.ExecQuery _
    ("Select * from Win32_SystemEnclosure")
For Each objChassis in colChassis
    For  Each strChassisType in objChassis.ChassisTypes
        Select Case strChassisType
            Case 1
                Wscript.Echo "Other"
            Case 2
                Wscript.Echo "Unknown"
            Case 3
                Wscript.Echo "Desktop"
            Case 4
                Wscript.Echo "Low Profile Desktop"
            Case 5
                Wscript.Echo "Pizza Box"
            Case 6
                Wscript.Echo "Mini Tower"
            Case 7
                Wscript.Echo "Tower"
            Case 8
                Wscript.Echo "Portable"
            Case 9
                Wscript.Echo "Laptop"
            Case 10
                Wscript.Echo "Notebook"
            Case 11
                Wscript.Echo "Handheld"
            Case 12
                Wscript.Echo "Docking Station"
            Case 13
                Wscript.Echo "All-in-One"
            Case 14
                Wscript.Echo "Sub-Notebook"
            Case 15
                Wscript.Echo "Space Saving"
            Case 16
                Wscript.Echo "Lunch Box"
            Case 17
                Wscript.Echo "Main System Chassis"
            Case 18
                Wscript.Echo "Expansion Chassis"
            Case 19
                Wscript.Echo "Sub-Chassis"
            Case 20
                Wscript.Echo "Bus Expansion Chassis"
            Case 21
                Wscript.Echo "Peripheral Chassis"
            Case 22
                Wscript.Echo "Storage Chassis"
            Case 23
                Wscript.Echo "Rack Mount Chassis"
            Case 24
                Wscript.Echo "Sealed-Case PC"
            Case Else
                Wscript.Echo "Unknown"
            End Select
    Next
Next

0
 

Author Comment

by:jpetter
ID: 12134059
Thanks! That will work just fine.

Jeff
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 12134413
Great - happy to help.
Speaking of Pizza boxes...I saw some guy had built his system inside of a Bud-Light case...
Too many people with too much time on their hands eh? : )
0
 

Author Comment

by:jpetter
ID: 12134624
Yeah, that's pertty crazy. I like the entrepreneurial spirit, but man, all that work going into a cardbox box, and a flimsy one at that...

Amazing!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now