Sunday, September 30, 2012

Get the hardware details of your USB flash drive

The Windows Management Instrumentation a.k.a. WMI is a great tool to retrieve information about a certain device on Window-based PC (most C/C++ developers are familiar with this tool), To know more about WMI click here.

To get the data of the below device.


Figure 1: Cruzer Blade USB Flash Drive 

Follow these steps...


1. Plug in the flash drive.
2. Click the .
3. Type powershell on .
4. Choose  from the listed items.
5. On the PowerShell CLI enter:

Get-WmiObject -Query "SELECT * FROM Win32_PnPEntity WHERE Manufacturer = 'SanDisk'"

Output



No comments:

Post a Comment