tags:

views:

314

answers:

3

How To Get The Serial Number for all type of harddisk in c#.net

+3  A: 

Looks like this article should help

It uses the WMI Win32_PhysicalMedia class.

Sam Saffron
A: 

Here.

HTH, Kent

Kent Boogaart
A: 

S.M.A.R.T. IOCTL. Can't remember off the top of my head which smart command but basically you open the volume and issue a S.M.A.R.T. command...

KristoferA - Huagati.com
Definitely cooler than WMI :)
Anton Tykhyy
Will this only work if S.M.A.R.T is enabled on the drive?
Bobby Cannon