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.
- Serial Number Idm
- Volume Serial Number In Registry Search
- Get Volume Serial Number
- Serial Number Lookup
- 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)?
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).
Volume Serial Number In Registry Search
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
).
Now the clever bit: what other objects are linked to the drive's object:
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 :-)).