The WMI Service can report detailed hardware information. Generally, each hardware comes from its own WMI proxy class. However, it is not easy to find out the names of these hardware classes.
All hardware classes are under the same WMI root. You can query all hardware in the root class:
Get-WmiObject -Class CIM_LogicalDevice | Out-GridView
The preceding command returns the basic hardware list. However, to get more information and add additional code, you can also get the name of the hardware class from WMI:
1 Get-WmiObject -Class CIM_LogicalDevice |2 Select-Object -Property __Class, Description |3 Sort-Object -Property __Class -Unique |4 Out-GridView
Now you can use different class names to query the detailed types of hardware and obtain their lists:
Get-WmiObject -Class Win32_SoundDevice
Result:
Manufacturer Name Status StatusInfo
------------ ---- ------ ----------
Cirrus Logic, Inc. Cirrus Logic CS4... OK 3
Intel(R) Corpora... Intel(R) Display... OK 3
From: http://www.pstips.net/wmi-device-inventory.html
Obtain the WMI hardware list