I have a problem with reading the serial number from the USB Android Device and write it to the label in Windows Forms C#. I have tried to dig in WMI using WQL but I didn't find the Serial Number property. SerialNumber
Asked
Active
Viewed 228 times
-2
-
1What have you tried so far? – greenjaed Apr 02 '21 at 23:07
-
Query in many WMI classes. ManagementObjectSearcher s = new ManagementObjectSearcher("root\\CIMV2", @"SELECT * FROM Win32_PnPEntity where DeviceID Like ""USB%"""); – ProgramistaZaDyche Apr 03 '21 at 00:44
-
and this:Win32_USBHub, Win32_POTSModem,Win32_PnPSignedDriver. – ProgramistaZaDyche Apr 03 '21 at 00:44
1 Answers
0
I find out how to do this. There is a NuGet called "PortableDevices". If someone is looking for it everything is HERE

ProgramistaZaDyche
- 214
- 3
- 10