Volume Serial Number In Registry

A volume serial number is a serial number assigned to a disk volume or tape volume.It originated in 1950s in mainframe computer operating systems. In OS/360 line it is human-configurable, has a maximum length of six characters, is in uppercase, must start with a letter, and identifies a volume to the system in unique manner.

  1. Serial Number Idm
  2. Volume Serial Number In Registry Search
  3. Get Volume Serial Number
  4. Serial Number Lookup
Active5 years, 7 months ago
  • Volume Serial Number. Open Command Prompt in Windows. In the Windows search bar, type CMD, and select the Command Prompt from the listed results. An HDD and an SDD have two types of serial numbers. The first is a ‘volume’ number. Your HDD/SDD is divided into additional drives. These are basically the volumes.
  • As for the serial number, do you mean the number on the drive's label, or do you mean a volume serial number such as is assigned by your OS? NITROGEnarcosis Distinguished. Sep 18, 2008 78 0 18,640 2. Feb 22, 2012 #4 you can access the drive serial number through its SMART data. However, putting enough code to read the SMART data in a boot.
  • Practical Question: What is the Volume Serial Number of the C: Drive? 2656-A8AC Practical Question: Perform an Indexed Search for the word 'gubergren', restricting your search to registry files.
  • I run the latest version of Spybot and there always seems to be a long list of entries that need to be fixed. Is something wrong with my computer? I can tell bad malware from no malware.
  • Volume Serial Number. Open Command Prompt in Windows. In the Windows search bar, type CMD, and select the Command Prompt from the listed results. An HDD and an SDD have two types of serial numbers. The first is a ‘volume’ number. Your HDD/SDD is divided into additional drives. These are basically the volumes.

I have few exactly the same drives in my desktop machine. I want to replace one of the drives which contains single volume (and it's the only disk that is used to create the volume). The problem is that I don't want to take out every disk one by one to see if the one removed is the one. Therefore I want to get serial number of the disk.

I'm able to get serial numbers of all disks with wmic and I'm able to get Volume Serial Number of the volume. How can I link them (preferably both using GUI and console)?

matt
mattmatt
3311 gold badge3 silver badges15 bronze badges

Serial Number Idm

1 Answer

It is certainly possible to map partitions (and thus drive letters) to the devices in WMI (which wmic queries). However it can require a little effort following the associations from one WMI object to others with WQL: the 'SQL Like' query language of WMI (see link for the documentation).

Using PowerShell (because I know it better, and it makes executing expressions much easier):

PSH also has a transcription ability, so with some editing and annotations:

One instance of Win32_LogicalDisk exists per partition: usually a good starting point for anything to do with disks. But I want more details, including the meta-data to uniquely identify this instance so I can look for associations. So use Format-List (aliased to fl) to list all the properties:

And then to capture the __RELPATH (__PATH also works, but everything is local here, I don't need the computer name or WMI namespace: everything I'm doing with be in rootcimv2).

Volume serial number lookup

Now the clever bit: what other objects are linked to the drive's object:

Number

This one looks interesting:

But does not itself contain what I want. So repeat the process:

So it links back to the Win32_LogicalDisk where we started, but in this case that Win32_DiskDrive looks like it might be helpful (the value of the __RELPATH is a clue: I know that's the kind of naming Windows uses for its physical disks):

And there you have it. (I suspect the SerialNumber's value is encoded—20 could be the ASCII code for a space in hexadecimal, but checking that would need opening up my computer and getting the disk drive out: I'll leave that as an exercise :-)).

RichardRichard

Get Volume Serial Number

7,9543 gold badges20 silver badges26 bronze badges

Serial Number Lookup

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