- HARD DISK SERIAL NUMBER CHANGER WINDOWS 7 SERIAL NUMBERS
- HARD DISK SERIAL NUMBER CHANGER WINDOWS 7 INSTALL
- HARD DISK SERIAL NUMBER CHANGER WINDOWS 7 SOFTWARE
- HARD DISK SERIAL NUMBER CHANGER WINDOWS 7 CODE
This serial number can also be used by different software programs to identify the hard disk and prevent multiple installation of the same program on different machines.
HARD DISK SERIAL NUMBER CHANGER WINDOWS 7 SERIAL NUMBERS
Everything I can find and read leads back to having to query the Scsi bus and the devices on it to get the actual manufacturer hardware serial numbers of RAID drives.When you format a hard drive with Windows, it is assigned a serial no. But since i'm focusing manily on RAID here, what about non RAID0 Raid arrays like RAID 5? Take another look at that registry export, the key path - "Scsi\Scsi Port 6\Scsi Bus 0" > ahhhhhh HA! A clue for reading hardware serial numbers for RAID (not RAID0).
HARD DISK SERIAL NUMBER CHANGER WINDOWS 7 CODE
I'm on Windows 7 Ultimate so there may be something with previous opertaing systems in the registry for serial numbers, I don't remember if there was or not.īut what about non-RAID SATA drives? Yep the above WMI code using COMate gets them. None of the other hard drive (non-raid drives) serial numbers appear in the registry for the rest of the drives on the machine. Some people will say that the hard drive serial numbers that WMI gives are simply from the registry, the only thing that comes close to being in the registry for me for hard drive serial numbers is the RAID drive and it appeared as simply "RAID" for its serial number and this kinda makes sense because I already know that RAID0 striped arrays drives don't have serial numbers if they are RAID0 and my RAID is RAID0, only when the drives in the RAID0 array are no longer in the array can you read a serial number for them. so personally I would not want to base a software protection that could be overcome by simply getting the serial number from the registry. See where it says "SerialNumber"="RAID ". If I look up my RAID drive in the windows registry I find this (below is exported from the registry):Ĭode: Select all Windows Registry Editor Version 5.00 As for using this a a protection method, hmmmm.well, lets look at that.
HARD DISK SERIAL NUMBER CHANGER WINDOWS 7 INSTALL
I don't think the manufacturer would go to the trouble of assigning a unique serial number to identify something only for the user to have the ability to change it by something so common as a format or even an operating system install (clean installs of Windows basically performs a format of the drive).īoth descriptions for both classes say "Manufacturer allocated number used to identify the physical media.". So these are manufacturer assigned, not user assigned by formatting or partitioning. Notice they say "Manufacturer serial number" and not "Volume Serial Number" like for for each parition. If its a raid drive its serial number is given as RAID in some cases, it does for mine. I didn't provide any identification for which drive is which so thats up to you. ObjWMIService = COMate_GetObject("winmgmts:\\" + strComputer + "\root\cimv2", "")ĬolDDInfo = objWMIService\CreateEnumeration("ExecQuery('Select * from Win32_PhysicalMedia')")ĭebug DDInfo\GetStringProperty("SerialNumber")ĬolDDInfo = objWMIService\CreateEnumeration("ExecQuery('Select * from Win32_DiskDrive')")īoth classes produce the same serial number.
Heres a quick simple thing using srods COMate for getting the hardware serial numbers of drives using both classes (there are other classes that do this also):Ĭode: Select all XIncludeFile "COMatePLUS.pbi"ĭefine.COMateObject objWMIService, DDInfo Both work in Windows 7, and they worked in Windows Vista also. So those both are the same in this respect except that one of them can be used in Windows XP and the other can't. Manufacturer-allocated number used to identify the physical media.
The SerialNumber property for the Win32_PhysicalMedia class description says this: Windows Server 2003, Windows XP, Windows 2000, and Windows NT 4.0: This property is not available. Number allocated by the manufacturer to identify the physical media.
The SerialNumber property for the Win32_DiskDrive class description says this: There are a few different WMI classes that offer up the drive serial number, Win32_DiskDrive and Win32_PhysicalMedia for example. WMI offers a few different classes for getting the serial number of drives.