How to get software & hardware information from wi

2020-03-30 02:33发布

I need to get hardware and software information of Windows like the information we got from dxdiag

  • Computer module : TOSHIBA l775
  • Processor : Intel(R) i5 CPU M480 @2.67Ghz ..
  • RAM : 4.00 GB
  • Graphic Card : ATI Mobility Radeion HD 5650 - 2746MB
  • Direct Draw : Enabled
  • DirectX : DirectX 11 Enabled
  • AGP Texture : Enabled

    I need this because I'm developing a server-client application so I can get remote PC details.

    I've already googled for some of them, but it looks like each one is clearly different from the other one. I'm also not sure if it would work on any computer on Windows.

    So is there a way to get this information from any computer that uses Windows?

    I'm using [.NET 4.0]

  • 3条回答
    forever°为你锁心
    2楼-- · 2020-03-30 02:54

    Just want to add a little bit to the answer by las. What you want you use is something called Windows Management Instrumentation. Full details of the implementation is located here.

    Basically WMI is an SQL like query language that allows you to query various aspects of the computers infrastructure. The link provided by las appears to provide a decent example.

    Here is a link to a sample bit of code that allows you to browse through all the schemas provided in WMI.

    查看更多
    混吃等死
    3楼-- · 2020-03-30 02:54

    It is simple, you can easily get such information from the registry, or using the System.Management library. It depends greatly on what information you are willing to get. I made a detailed post which explains how you can accomplish this Here it is

    查看更多
    狗以群分
    4楼-- · 2020-03-30 03:03
    登录 后发表回答