How to get USB drive real serial number without WMI?

  • Follow


Hi all, i'd like to know how to get the serial number of a USB drive without using WMI.
Possibly the one that doesn't change when you format your drive.

Thanks in advance
0
Reply star 1/25/2010 11:35:40 AM

As far as I know you can't... you have to use WMI.

David
 
======================================
David McCarter [Microsoft MVP]
www.dotNetTips.com
David McCarter''''s .NET Coding Standards available at:
http://codingstandards.notlong.com


"star-italia" wrote:

> Hi all, i'd like to know how to get the serial number of a USB drive without using WMI.
> Possibly the one that doesn't change when you format your drive.
> 
> Thanks in advance
> .
> 
0
Reply Utf 1/25/2010 7:21:01 PM

Hello,

Here is a nice article about how to get USB serial number in two ways,
1.WMI
2.Windows API
http://www.emmet-gray.com/Articles/USB_SerialNumbers.htm

Obviously that the WMI approach is more straight and easier. So I also 
suggest you use the WMI approach.


Best regards,
Ji Zhou
Microsoft Online Community Support

0
Reply colbertz 1/27/2010 9:52:11 AM

Thank you very much. i'll take a look at it

On 27/01/2010 10:52, Colbert Zhou [MSFT] wrote:
> Hello,
>
> Here is a nice article about how to get USB serial number in two ways,
> 1.WMI
> 2.Windows API
> http://www.emmet-gray.com/Articles/USB_SerialNumbers.htm
>
> Obviously that the WMI approach is more straight and easier. So I also
> suggest you use the WMI approach.
>
>
> Best regards,
> Ji Zhou
> Microsoft Online Community Support
>
0
Reply star 1/27/2010 12:11:57 PM

3 Replies
419 Views

(page loaded in 0.046 seconds)


Reply: