10

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.

user15071
  • 3,391
  • 8
  • 31
  • 31

4 Answers4

9

It seems to me that msinfo32 puts out all the information you could want including ports, IRQs, and addresses used.

try: 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.

thunderblaster
  • 918
  • 11
  • 27
trindflo
  • 311
  • 3
  • 12
  • 4
    `start /w msinfo32.exe /report msiout.txt` causes the command prompt to wait until the file is generated. – JohnW Feb 05 '16 at 02:24
5

msinfo32 has a number of command line switches you can use to dump the output to a file

the_mandrill
  • 29,792
  • 6
  • 64
  • 93
5

Devcon is one such tool. It is built by Microsoft, and is open source.

For eg. to Check status of all PCI devices on the system, on could use:-

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.

The utility gets installed with Windows SDK, Visual Studio, and WDK; see this.

On my machine the 64 bit version of the tool is located in C:\Program Files (x86)\Windows Kits\10\Tools\x64

Sahil Singh
  • 3,352
  • 39
  • 62
  • 3
    Is there a way to obtain `devcon` as a standalone utility without installing multigigabytes of Windows SDK, WDK, etc.? UPDATE: here it is https://superuser.com/questions/1002950/quick-method-to-install-devcon-exe – evaldaz Sep 20 '19 at 01:31
  • hahaha... you're right @evaldaz.... that was crazy. – gumuruh Nov 19 '20 at 03:58
  • devcon is much faster than msinfo32, and it was perfect for my purpose (I needed to spot what device was causing Windows to bleep every 30 seconds like in a connection/disconnection of a device, and I needed the dump to be very quick). Thanks also @evaldaz for posting the link to the SuperUser question on how to get devcon with a small download – Fulvio Jul 19 '22 at 14:18
0

Get everything seen in Device Manager, Device Properties Details tab via PowerShell: Get-PnpDevice -InstanceId "USB\VID_0979*" | Get-PnpDeviceProperty | Export-Csv DevDetails.csv

I guess Microsoft doesn't recommend using devcon.exe anymore suggesting to use pnputil.exe which is built-in :) pnputil examples

gregg
  • 1,084
  • 1
  • 12
  • 25