Get The Computer Type From Windows Vista WMI
Category:
System/APIType:
SnippetsDifficulty:
BeginningAuthor:
AnonymousVersion Compatibility: Visual Basic Script
More information:
There are new classes and properties in the WMI for Windows Vista. The Win32_ComputerSystem class has a new property named PCSystemType. This property stores the type of computer a system is, such as Desktop, Mobile, Enterprse Server etc. Simply select everything from the Win32_ComputerSystem class and you can find the PCSystemType property in the first index of the collection. This property returns an index that represents the computer type.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: