Finding a device given a physical device object name

12

I have a physical device object name, e.g. "\Device\0000007c".

In Windows 7, how do I find what device corresponds to that ID short of going through every device in my system in Device Manager, one at a time, opening the properties dialog and looking at the Physical Device Object Name entry?

I found Find device in Windows based on Physical Device Object (PDO) identifiers but that turned out to be a bit of an XY problem and doesn't answer this question.

I tried searching the registry (keys/values/data) for the string "0000007c", "0000007C", and the dword 0x0000007C but could not find anything related to devices.

In older Windows you could print a full report from Device Manager (which I could then search), but in Windows 7 the Device Manager no longer has this option.

windows-7
device-manager
asked on Super User Jul 18, 2014 by Jason C • edited Jul 19, 2017 by Jason C

1 Answer

11

Solution

From the official documentation:

When a bus driver detects that child devices have been plugged in or unplugged, it informs the Plug and Play (PnP) manager. In response, the PnP manager asks the bus driver to create a physical device object (PDO) for each child device that is connected to the parent device (that is, the bus).

Source: WDM Concepts for WDF Drivers

To get the required information, open a command prompt and run the following command:

wmic path Win32_PnPSignedDriver where "pdo like '%0000007c'" get devicename,pdo

Further reading

answered on Super User Jul 31, 2014 by and31415

User contributions licensed under CC BY-SA 3.0