3

I need to find the GUID for an existing USB device attached to my Windows XP system. How can this be done using WMI or the registry? Or, is there another avenue that I should explore? Thanks.

Additional Information:

I need to find the GUID for a specific known device; it is not expected to change. If I need to write a little program, use some tool, or look somewhere in the Windows system to find this information, it's all the same to me.

Jim Fell
  • 13,750
  • 36
  • 127
  • 202
  • I assume you mean the device class GUID? Are you trying to do this programmatically or manually? Are you trying to get the GUID for a specific known device, or are you trying to look up an arbitrary device's GUID at runtime? – Josh Kelley Dec 07 '10 at 15:08
  • @Josh Kelley: I added some additional information to my original question, which hopefully answers your questions. – Jim Fell Dec 07 '10 at 15:13

3 Answers3

5

Control Panel > Device Manager > Right Click on Device > Properties > Details Tab > Change 'Property' to Driver Key > Guid will be displayed in 'value' section

oLinkWebDevelopment
  • 1,841
  • 15
  • 8
  • 1
    I just tried that, and got 88BAE032-5A81-49f0-BC3D-A4FF138216D6, which is the GUID for USB device class. I believe all USB devices have that GUID – Edward Falk Jan 11 '18 at 01:00
4

For a specific known device, the easiest way I've found is to open the .inf file for that device's driver (if you have the driver); it should be clearly indicated there.

You can probably also poke around under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB.

Josh Kelley
  • 56,064
  • 19
  • 146
  • 246
1

DevViewer from Symantec also seems to do the trick.

Jim Fell
  • 13,750
  • 36
  • 127
  • 202