Posted  by 

How Do I Get Windows Serial Key For A Reformat On A Laptop

How Do I Get Windows Serial Key For A Reformat On A Laptop
Active2 years, 1 month ago

From the Windows NT-based (Windows XP and 7 specifically) command prompt, how can I get the serial number of a hard drive as a variable? The one I'm looking at is the serial number of the physical hard disk drive

Step 1: Access to laptop, click Start and type in Recovery in Windows 7 search box. And that will bring up a method for you to recover your laptop. Choose “Recovery” program. Step 2: Click Open System Restore” to run System Restore program. Step 3: Select a system restore point. I'm having performance issues with my 5-year old laptop. It takes about 7-10 minutes to boot. It also is bloated and has much that I no longer need. I decided to reformat and start fresh. I've made a Macrium disk image and have windows rescue and boot disks for after i reformat the computer.

Canadian Luke

Is there a way to find out the Windows serial number if I ever come to a point of wanting to re-install fresh Windows without having a buy a new copy? Thank you in advance. If you have a Windows 7-era PC, there’s a good chance the PC’s key is a single key the manufacturer uses for all their PCs. Thanks to “System Locked Pre-installation,” you’re. Feb 14, 2017  How to find computer serial number. Applies to: Windows Vista Enterprise Windows Vista Business Windows Vista Ultimate Microsoft Windows Server 2003 R2 Enterprise x64 Edition Microsoft Windows Server 2003 R2. The following article will help you to find the computer serial number. Tips Please use one the method bellow to.

Canadian LukeCanadian Luke
18.5k33 gold badges97 silver badges153 bronze badges

4 Answers

vol C:

this will get the volume serial number given to it by windows.

wmic diskdrive get serialnumber

this gets the manufacturers serial number of the hard drive.

KeyMoabMoab
52.3k14 gold badges97 silver badges161 bronze badges
  • 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.

  • All you can do is redirect the output of that command to a file : C:> vol c: > myvol.txt and it will be stored as a text file in your C:

  • I am attaching a screenshot with the highlights:

  • The file was stored in the root of C:
  • This is what the myvol.txt file looks like in Notepad:
aliasgaraliasgar

In a batch file one approach is:

  1. VOL command to produce the serial number as text along with text we don't want.
  2. FIND to trim it down to only the line with the serial number.
  3. FOR to grab the 5th token (a part between delimiters) on the line with the serial number.
  4. SET to assign to an environment variable
BrianBrian

In the same vein as Moab's answer, but using PowerShell this time:

Download links are directly from our mirrors or publisher's website, tenorshare whatsapp recovery torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, Letitbit, DropSend, MediaMax, HellShare, HotFile, FileServe, LeapFile, MyOtherDrive or MediaFire, are not allowed! Top 4 Download periodically updates software information of tenorshare whatsapp recovery full versions from the publishers, but some information may be slightly out-of-date. These infections might corrupt your computer installation or breach your privacy. Using warez version, crack, warez passwords, patches, serial numbers, registration codes, key generator, pirate key, keymaker or keygen for tenorshare whatsapp recovery license key is illegal. Your computer will be at risk getting infected with spyware, adware, viruses, worms, trojan horses, dialers, etc while you are searching and browsing these illegal sites which distribute a so called keygen, key generator, pirate key, serial number, warez full version or crack for tenorshare whatsapp recovery. 'download tenorshare free whatsapp \serial key\''''.

This command gets an instance of the Win32_DiskDrive WMI class and outputs the model of each disk drive in the computer and its corresponding serial number from that instance.

This answer assumes PowerShell 3.0 or later. If running an older version, use Get-WmiObject in place of Get-CimInstance.

On Windows 8 and later, you can also use this command:

bwDracobwDraco

How Do I Get Windows Serial Key For A Reformat On A Laptop Windows 10

37.7k37 gold badges143 silver badges179 bronze badges

protected by bwDracoFeb 11 '18 at 19:14

How Do I Get Windows Serial Key For A Reformat On A Laptop

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

How To Get Windows Serial Key

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