Help with extracting registry key value

(imported topic written by SystemAdmin)

Hello,

I am trying to retrieve a specific registry key to report on a device that is attached via USB. The key is:

HKLM\SYSTEM\CurrentControlSet\Enum\USB\Vid_079b&Pid_0024\251284011-0444C330133 and the value that we want under this key is LocationInformation=SAGEM MORPHOSMART MSO300. The challenge we have is that want to extract the LocationInformation but the part of the key(251284011-0444C330133) is different on every single machine. I think its the serial number number of the device.

  1. Is it possible to use regular expressions for the part of the registry key that is different on every PC?

  2. How do you actually retrieve the value of LocationInformation. I can only seem to get the 251284011-0444C330133 part of the key out.

The standard USB device detection does not seem to pick up this specific device in our environment.

See screen shot for details.

Thank you

Regards

Pritesh