Determining Hard Drive Serial Number

D

Dan

Does anyone know how to determine the physical hard drive serial
number? I found a GetVolumeInformation function in C++ but wanted a
comparable function in VB.net or C#.

Thanks
Dan Shanyfelt
 
D

Dan

Thanks for the replies.

I'm not sure GetVolumeInformation was the right function in the first
place. What I need is to get the manufacturer's serial number of the
physical drive, not the volume number of a logical drive. A coworker
found a great example of how to do this in c# at the code project:

http://www.codeproject.com/csharp/hard_disk_serialNo.asp

Unfortunately, the Win32_PhysicalMedia class is not available below XP
and Server2k3. Does anyone have any ideas on how to get this info on
Server2k. I am looking for physical serial numbers of SCSI drives
some of which are configured in a RAID.

Thanks again,

Dan Shanyfelt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top