1

Is there a way using C# to identifying a device and associated child USB device(s)? For example I have a USB Zebra printer with a card reader mounted on it, and wish to know the card reader's name and identifying details i.e. build up a tree of associated devices.

USB Zebra Printer
---> USB Card Reader Name

Using a Powershell script I can see the devices I'm interested in;

gwmi Win32_USBControllerDevice |%{[wmi]($_.Dependent)} |
Sort Manufacturer,Description,DeviceID |
Ft -GroupBy Manufacturer Description,Service,DeviceID

Here's the output;

Powershell Output

Windows shows this information in the printer properties;

Windows USB device tree

user692942
  • 16,398
  • 7
  • 76
  • 175
wonea
  • 4,783
  • 17
  • 86
  • 139
  • possible duplicate of [Smartcard reader naming](http://stackoverflow.com/questions/24612817/smartcard-reader-naming) – user692942 Jan 09 '15 at 15:42
  • This might also be useful - http://stackoverflow.com/questions/6940824/getting-pcsc-reader-serial-number-with-winscard – user692942 Jan 09 '15 at 15:45

1 Answers1

0

This could be useful, just do the same as this guy and seperate the devices by comparing them to strings/eachother: https://stackoverflow.com/a/3331509/4424210

Community
  • 1
  • 1
TinneS
  • 1
  • 1