Detect SD card using WMI Query

1.2k views Asked by At

I have a query that return USB devices attached in:

   SelectQuery sq = new SelectQuery("select DeviceID, Model from Win32_DiskDrive where   InterfaceType='USB'");
   ManagementObjectCollection MOC = new ManagementObjectSearcher(sq).Get();

But it doesn't retrieve the SD card information.

How do i can retrieve this SD cards information using WMI queries?

1

There are 1 answers

0
Fher Devs On

i modified "select DeviceID, Model from Win32_DiskDrive where InterfaceType='USB'" removing "where InterfaceType='USB"