All PS versions are supported.
The WMI service is able to report detailed hardware information. Typically, each hardware comes from its own WMI proxy class. But it is not easy to find out the names of these hardware classes.
All hardware classes are under the same WMI root, and you can query all the hardware in the root class:
1 |
Get-WmiObject -Class CIM_LogicalDevice | Out-GridView |
The above command returns to the underlying hardware inventory. But to get more information, plus additional code, you can also get the name of the hardware class from WMI:
1234 |
get-wmiobject -class cim_logicaldevice |    select-object -property __class, Description |    sort-object -property __class -unique |    out-gridview |
Now you can query the detailed types of hardware and get a list of them using different class names:
123456 |
PS>
Get-WmiObject -Class Win32_SoundDevice
Manufacturer Name Status StatusInfo
------------ ---- ------ ----------
Cirrus Logic, Inc. Cirrus Logic CS4... OK 3
Intel(R) Corpora... Intel(R) Display... OK 3
|
Original address: WMI Device Inventory
PowerShell gets a list of WMI devices