How to get software & hardware information from windows (like dxdiag)?

前端 未结 3 412
后悔当初
后悔当初 2021-01-15 16:04

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

  • Computer module : TOSHIBA l775
  • Processor
  • 3条回答
    •  爱一瞬间的悲伤
      2021-01-15 16:49

      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.

    提交回复
    热议问题