Hello,
This is not the relevant forum for this. Still thought that someone could guide me in the right direction.
I want to read the manufacturer-assigned serial number of an external hard disk, which is (almost) unique and won't change even if it's formatted. I want to use it for securing my application.
Is that any tool (ActiveX or DLL or similar, free / paid) that could help us to read the unique serial number of any external hard disk?
Happiness Always
BKR Sivaprakash
Get-WMIObject win32_physicalmedia | Format-List Tag,SerialNumber.
I get some junk like thing in serialnumber output ....
Looks like there's an issue in Windows 7 with certain characters in hdd serial numbers. A hotfix was available but since Windows 7 is no longer supported by Microsoft, I don't think it is obtainable now.
https://support.microsoft.com/en-us/help/2664203/invalid-xml-content-error-message-when-you-run-a-wmic-command-in-windo
Toshiba - returns junk in Win 7, returns serial number in Win 10. This is the one that I was trying from the beginning.
WD - works fine in both Win 7 and Win 10.
I tried copying wmic.exe file from Win 10 machine to Win 7 machine, command itself doesn't work in Win 7. (Didn't expect it to work either, just tried).
Few HDD may not return correct serial number in Win 7, and no solution available as of now.