Get List of connected USB Devices

Add a reference to System.Management for your project, then try something like this: namespace ConsoleApplication1 { using System; using System.Collections.Generic; using System.Management; // need to add System.Management to your project references. class Program { static void Main(string[] args) { var usbDevices = GetUSBDevices(); foreach (var usbDevice in usbDevices) { Console.WriteLine(“Device ID: {0}, PNP Device ID: … Read more