http://www.everythingliveon.com/how-to-find-your-lost-windows-or-office-product-keys/
How to Find Your Lost Windows or Office Product Keys
If youāre planning on doing a reinstall of Windows but canāt find your product key, youāre in luck because itās stored in the Windows Registry⦠itās just not easy to find, and itās impossible to read without some help. Luckily, weāre here to help.
As you can see in the screenshot above, the product ID is stored in the registry but is in a binary format that canāt be read by humans unless you are some sort of Cylon. You arenāt, are you?
Weāre not really sure why Microsoft went to great lengths to make it difficult to seeĀ the product keys for their software, especially since they are stored right in there in the registry and can be read by software, if not by humans. We can only assume that they donāt want anybody to re-use a key from an old computer.
The great thing is that you can even recover a key from a computer that wonāt boot anymore. All you need is access to the disk drive from a working computer. Keep reading for more.
Note:Ā the keyfinder wonāt always work for OEM computers, depending on how they decided to activate the licenses they might have used a single license for all computers. It also doesnāt work for Office 2013.
Finding the Windows Key Without Any Software
Assuming you can boot your computer without any problems, you can easily create a simple VBscript that will read the value out of the registry and then translate it into the format that you need for reinstalling. Weāre not sure where this script came from, but reader raphoenix posted it onĀ our forum a long time ago, so weāre sharing it here for you.
Copy and paste the following into a Notepad window:
Set WshShell = CreateObject("WScript.Shell") MsgBox ConvertToKey(WshShell.RegRead ("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) Function ConvertToKey(Key) Const KeyOffset = 52 i = 28 Chars = "BCDFGHJKMPQRTVWXY2346789" Do Cur = 0 x = 14 Do Cur = Cur * 256 Cur = Key(x + KeyOffset) + Cur Key(x + KeyOffset) = (Cur \ 24) And 255 Cur = Cur Mod 24 x = x -1 Loop While x >= 0 i = i -1 KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput If (((29 - i) Mod 6) = 0) And (i <> -1) Then i = i -1 KeyOutput = "-" & KeyOutput End If Loop While i >= 0 ConvertToKey = KeyOutput End Function
Youāll need to use File -> Save As, change the āSave as typeā to āAll Filesā and then name it productkey.vbs or something similar ending with the vbs extension. Weād recommend saving to the desktop for easy access.
Once youāve saved it, you can just double-click and the popup window will show you your product key.
Protip: If you use CTRL + C when the popup window is active, it will copy the contents of the window to the clipboard, and then you can paste it into Notepad or somewhere else.
Use NirSoftās ProduKey to Recover Product Keys (Even if You Canāt Boot the PC)
The easiest way to get access to your product key is with a third-party utility, and thereās nobody better at those than NirSoft. Their utilities are always crapware-free, and are always really useful. The only issue with this particular utility is that some antivirus will detect it as a false positive, because some malware mightĀ try to steal your product key.
All you have to do is download ProduKey, unzip it, and then run it to immediately see all of your product keys. Itās as simple as that.
If you want to recover a key from a dead computer, you can hook up the hard drive to a working PC, and then run ProduKey and use File -> Select Source to point to the external Windows directory. You can then grab the keys from that computer easily.
You can also use a Linux live CD to pull the Windows directoryĀ off the other computer and onto a thumb drive, or just grab the registry files if you prefer. If you need help, weāve got a guide to pulling data off a dead computer.