Finding a device given a physical device object name

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.

4

1 Answer

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like