Looking for particular USB device

(imported topic written by rharmer91)

I think I have the pieces in order to do this…

  1. USB\VID_0A82&PID_2000 is the device I’m looking for

  2. In WMI Explorer I can see it connected to one of the ports via select * from Win32_USBControllerDevice

so I was trolling for some relevance and it appears the following will list all devices, but even a little tweak to grab the above device may not be the most efficent way to get it. Thoughts?

if (exists wmi) then (string values whose (it != “Generic volume” AND it != “HID-compliant consumer control device” AND it != “HID-compliant device”) of selects ((“Caption from Win32_PnPEntity where DeviceID=’” & it as string & “’”) of preceding texts of lasts “%22” of following texts of lasts “=%22” of (string values whose (it does not contain “USB\”) of selects “Dependent from Win32_USBControllerDevice” of wmi )) of wmi) else (“N/A”)

Thanks,

Rich