troubleshooting Question

How to get HARDWARE serial-number of hard-disk drives with WMI (or any other reliable API)

Avatar of PeterDelphin
PeterDelphin asked on
Storage HardwareWestern Digital
21 Comments1 Solution17357 ViewsLast Modified:
I am trying to get the HARDWARE Serial Numbers of hard-disk drives (which includes SSDs) with WMI (Windows Management Instrumentation):

Class: Win32_DiskDrive
Namespace: root\CIMV2

Now, a customer's computer contains 4 Western Digital hard-disk drives:

WDC WD2002FYPS-02W3B0 ATA Device
WDC WD2003FYYS-02W0B0 ATA Device
WDC WD3000GLFS-01F8U0 ATA Device
WDC WD30EZRX-00MMMB0 ATA Device

And these are the serial numbers of these 4 hard-disk drives I got with the above WMI query:

2020202057202d44435756413559323535303937
2020202057202d444d5759413030303834323931
2020202057202d445857354c3830353035313836
2020202057202d4443575741305a343930343730

Please note that these serial-numbers are very similar, so I cannot believe these are the real serial-numbers of these hard-disk drives.
So I used a professional hardware information program (HWiNFO) to compare these serial-numbers with those detected from HWiNFO, and they were totally different.

So I wonder whether it is possible to query the REAL hardware serial-numbers of hard-disk drives by using WMI?
ASKER CERTIFIED SOLUTION
Rob Miners

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 21 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 21 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros