Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For a very specific reason I need to check the computer form factor(Desktop, Notebook or All-in-one) remotelly, using a command through the command-prompt, powershell or vbs(Windows 7/8 systems).

There is any way to do such thing?

Thanks in advance.

share|improve this question
easiest solution teamviewer… – Lynob Aug 20 '13 at 12:30
I didn't answer because teamviewer isn't exactly command through the command-prompt, powershell or vbs but will do the job and so easy to setup – Lynob Aug 20 '13 at 12:32
The only way I can think of doing this would be to do a lookup on the system model although this would require more than just the command line. Use wmic csproduct get name to get the system model – Jason Bristol Aug 20 '13 at 12:37
up vote 2 down vote accepted

save it as info.vbs
go to script location from command prompt and type info.vbs , press enter

 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
share|improve this answer
+1 for Lunch Box and Pizza Box » Win32_SystemEnclosure - PS: "\root\cimv2" <?? Doesn't work for me, is there something to edit? – nixda Aug 20 '13 at 14:27
Problem solved with your solution. Thank you very much. – Diogo Aug 20 '13 at 14:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.