windows 用于转储设备管理器中显示的所有设备属性的命令行工具
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3281147/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Command-line tool to dump all Device Properties displayed in Device Manager
提问by user15071
In Device Manager, clicking on a specific device takes you to a dialog box, whose Details tab shows all sorts of properties of the device. Is there a command line tool to dump this out? I need to diff all the properties of two devices.
在设备管理器中,单击特定设备将带您进入一个对话框,其详细信息选项卡显示设备的各种属性。是否有命令行工具可以将其转储出来?我需要区分两个设备的所有属性。
回答by trindflo
It seems to me that msinfo32
puts out all the information you could want including ports, IRQs, and addresses used.
在我看来,它msinfo32
列出了您可能需要的所有信息,包括端口、IRQ 和使用的地址。
try: msinfo32 /report msiout.txt
尝试: msinfo32 /report msiout.txt
Note that the command prompt returns immediately, but msinfo
runs in the background. You need to wait for the file to show up.
请注意,命令提示符会立即返回,但会msinfo
在后台运行。您需要等待文件出现。
回答by the_mandrill
msinfo32 has a number of command line switchesyou can use to dump the output to a file
msinfo32 有许多命令行开关,可用于将输出转储到文件
回答by Sahil Singh
Devconis one such tool. It is built by Microsoft, and is open source.
Devcon就是这样一种工具。它由 Microsoft 构建,并且是开源的。
For eg. to Check status of all PCI devices on the system, on could use:-
例如。检查系统上所有 PCI 设备的状态,可以使用:-
devcon status pci*
Similarly, to check status of all devices :-
同样,要检查所有设备的状态:-
devcon status *
More information about the tool, and its usage is given in its documentation.
有关该工具及其用法的更多信息,请参见其文档。
The source code can be found on github.
源代码可以在github上找到。
The utility get installed with Windows SDK, Visual Studio, and WDK; see this.
该实用程序随 Windows SDK、Visual Studio 和 WDK 一起安装;看到这个。
On my machine the 64 bit version of the tool is located in C:\Program Files (x86)\Windows Kits\10\Tools\x64
在我的机器上,该工具的 64 位版本位于 C:\Program Files (x86)\Windows Kits\10\Tools\x64