0

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

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
  • Near-duplicate of http://stackoverflow.com/questions/242480/what-are-the-ways-to-obtain-hdd-serial-number-without-wmi – Anton Tykhyy Mar 24 '09 at 13:10

3 Answers3

4

Looks like this article should help

It uses the WMI Win32_PhysicalMedia class.

Sam Saffron
  • 128,308
  • 78
  • 326
  • 506
0

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
  • 12,287
  • 1
  • 40
  • 62
0

you can easily use Hardware.Info.

Code sample here : https://stackoverflow.com/a/73628380/1546137

ihebiheb
  • 3,673
  • 3
  • 46
  • 55