Get Volume Serial Number

Get Volume Serial Number 4,3/5 1456 votes
Active8 years, 5 months ago

Open a command prompt. If you are not sure how to open a command prompt, click the Windows Start menu, type cmd, and press Enter. In the Command Prompt window that opens, type vol c: and press Enter. In the displayed output, find the 8-digit number listed as the Volume Serial Number for C drive. Make sure that the message is Volume in drive C is OS. What you are looking at is NOT the hard drive serial number. It is called the Volume Serial Number. It is generated at the time of creating and formatting the volume / partition. You can get it by using a command at command prompt: C: vol c: if C: is the drive you want to retrieve the Volume Serial Number for. WMIC: get Bios serial number. If you are looking to find BIOS serial number from CMD, then wmic bios is the command you would need. Below is the exact command you can run on any Windows computer to retrieve serial number. Wmic bios get serialnumber.

Error code 1618 windows 7. Apr 08, 2016  Method 2: Restart Windows installer service. Press Windows key + R to open the run command. Type services.msc and press enter. Locate and right click on Windows installer and select 'properties.' Change the startup type to automatic. Method 3: Clean Boot. Try placing the computer in clean boot state and check if you are able to.

How can I get Hard Disk drive volume serial number and volume label? If anybody can help me, please explain in a simple way. Saturday, September 12, 2009 1:09 PM. Apr 17, 2019  One is to use a free system information tool like the free Speccy program. With that program, in particular, find the Storage section and pick the hard drive you want the information for. Both the serial number and specific volume serial numbers are shown for each drive.

Hi I'm using this code to generate machine signature. But it's take noticeable time to execute. Wonder why it's that slow ? Any faster method recommended ?

Sake
SakeGet disk volume serial numberSake
2,2644 gold badges26 silver badges33 bronze badges

3 Answers

There is a .Net way also from egghead cafe using the System.Management namespace.

Firstly, you need to add the reference to the System.Management dll in vb.net. Using the Project->Add Reference menu item. Usb driver for windows 8.

Then the following code gets the drive serial number for the C drive:

RobSRobS

This is embarrassing. The performance problem can be solved by simply check for 'fixed' drive.

SakeSake
2,2644 gold badges26 silver badges33 bronze badges

There is a Win32 API call to this also, but i think WMI is the better way since it's still managed code.

Win32 API function: GetVolumeInformation

Linux Get Volume Serial Number

I found the following function on eggheadcafe (it's C#, but should be not problem to do in vb.net) to extract the Serial number:

Alexander

Get Volume Serial Number Ftk

Alexander
2,4218 gold badges36 silver badges48 bronze badges

Not the answer you're looking for? Browse other questions tagged .netvb.netwmi or ask your own question.