Obtain the WMI hardware list

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.