Finding Hard Drive Serial Number

Posted on  by 

Active4 years, 10 months ago

There are 3 ways to find the serial number of your WD drive: Option 1 – If you are using Windows Use Windows Data Lifeguard Diagnostics. The software can provide the serial and model number of the WD drive in your system.

I want to get the hardwired serial number from the hard disk but NOT using WMI. I tried using WMI code, and it doesn't work on my machine for sure. So is there any alternative in .NET for finding the Serial Number of a physical hard disk?

Jey GeethanJey GeethanHard
9595 gold badges22 silver badges55 bronze badges

7 Answers

This should help get started:

Regarding your problem with WMI not returning data; Are you sure how to the right privileges to get data from WMI? You can use WMI Tools to check/fix this.

EspoEspo
35.2k19 gold badges124 silver badges150 bronze badges

Use the createfile as shown below. It may require administrative permissions.Add 4 text boxes and a button in your code.

NavaneetNavaneet
9931 gold badge13 silver badges36 bronze badges

A perfectly working solution can be found here:

[edit]Sorry, missed that a reference to this has already been submitted.

mtxmtx

You can use the:

Win32 API function to get this information, if you must avoid WMI. The linked page gives full the declaration signature (in both VB & C#) for the API function along with sample code.

CraigTPFinding hard drive serial number listCraigTP
37.1k8 gold badges64 silver badges95 bronze badges
Finding Hard Drive Serial Number

Your best options is windows api,

i made a simple search and got this

General processor info and also read this post

Community
SmithSmith
3,15015 gold badges85 silver badges141 bronze badges

I am using hdd firmware track in my projects. I programmed behind the mdi form to look for hdd firmware number, then its looping on all the provided numbers of hdds of companies computers and if it matches anyone amongst these provided hdds firmware numbers, then run the applicatoin and load mdi form other wise provides a message 'The application is not registed on this machine, please call Mr. Afridi to register this application on 00923339176357. My email address is munawar_s_afridi@yahoo.com. I will send complete source code of fetching how to programm professionaly hdd firmware number and how to stop others by using your app illegaly.

One lovely thing that you should specify all the company computers hdd firmware at once and let the application first pick the hdd firmware number, store it in a variable and then pick the value of this variable(a string value) and loop it one by one with each hdd number by using OR logical operator. If it finds a matching number amongst the companies hdds numbers with variable value, then app should load main form(mdi) other wise notify the user for registration.

The sample code will be provided using vb6. You can easily programm later on in vb.net just by understanding how to call unmanaged code in to a managed .net application. In this case a .dll.


Use WMI from Server Explorer in VS

  • Open Server explorer
  • Expand your machine
  • Expand management classes
  • Expand Disk Volumes
  • Select the drive
  • Drag it onto a form to see the generated code
  • Access the VolumeSerialNumber property in code
Johann StrydomJohann Strydom

Not the answer you're looking for? Browse other questions tagged c#.netvb.netwmihard-drive or ask your own question.

Active3 years, 2 months ago

Yes, if it's large, heavy, and only 65 Meg in capacity, you can assume it's ancient. An RLL controller would positively indicate the drive is from antiquity. What about drives that are only 3 or 4 years old? If I know the serial number, make and model is there a public database that indicates a manufacturing date?

Update: As trite as this question might seem to some, the hard drive I was looking at that precipitated this question had no obvious manufacturing date stamped on it. I realize that most do. I think the answers given are very useful to myself and others.

Todd Stout
Todd StoutTodd Stout

6 Answers

If smartmontools is available, doing a 'smartctl --all |grep -i power_on_hours' gives you the number of operating hours for the drive.

Failing that, googling the model number of a drive would help as well. You can get the model by one of the following:

under linux and

either

or

under (Open)Solaris.

Of course you should be able to get the model number from the labels on the drive itself. ;-)

Lester CheungLester Cheung

The label on most hard drives show the date of manufacture.

Here are a few examples I found on the web (one old drive, one new) showing that sometimes you have to look carefully:

October of 2002
http://www.hardwarezone.com/img/data/articles/2003/694/label.jpg

July 6th, 2008

If you can't find the date on the drive itself try searching Google for the MODEL NUMBER of the hard drive.

If all else fails... give us more details of the drive and I'm sure someone here probably knows the answer. :-)

Good luck!

Community
KPWINCKPWINC
10.2k3 gold badges32 silver badges43 bronze badges

Another comment about age is how much use the drive has gotten since manufacture which can be very important too.

If the drive supports SMART disk monitoring, you can look at the number of hours in operation parameter (via Linux smartctl) which may provide a good clue at age in terms of usage.

mdpcmdpc
10.3k8 gold badges47 silver badges61 bronze badges

Many have an actual date stamped on them for warranty purposes. Every major vendor that I can think of has a support page where you can type a serial number in to in order to check warranty status and many of them will show the date of manufacture there as well.

MDMarraMDMarra
93.6k29 gold badges181 silver badges316 bronze badges

Integrated circuits on the drive's board have a manufacturing date code stamped on them. A common scheme is the four-digit code where the first two digits signify the year and the next two the week within that year. Other schemes are also used. The newest date you will find on the board will be quite near the drive's actual manufacturing date.

Diomidis SpinellisDiomidis Spinellis

Finding Hard Drive Serial Number

A) Date is printed on some drives as a manufacturing dateB) Google the model number and you may find a date estimate from sites still selling the drive or the drive manufacturer may have a spec sheet online with dates.

Bart SilverstrimBart Silverstrim
29.6k9 gold badges58 silver badges85 bronze badges

Find Hard Drive Serial Number In Windows

protected by SvenJul 28 '16 at 16:56

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

Find Hard Drive Serial Number Linux

Not the answer you're looking for? Browse other questions tagged hard-drivelicensing or ask your own question.

Coments are closed