Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Updated Saturday, June 3rd, 2006 at 1:13pm

Windows XP and Vista Product Key Recovery

There are many programs available for extracting the product key from a Windows XP or Vista installation. The only problem is that they generally require the computer to be functional to run. These programs are useless if the operating system is corrupt and the computer will not boot into Windows. Fortunately, there are other options. This article explains how you can retrieve the product key with just the ntuser.dat file from the machine. You can also download a stand-alone version of my decrypter tool.

Windows Vista Users

I have been informed that this method also works on Windows Vista.

Translations

Background Information

While this may not sound very useful to the average user, if you work with computers on a daily basis you have most likely ran into this problem: You have to perform a fresh installation of Windows on a computer with a corrupt operating system, and the product key has been lost. This method makes it easy to find.

Instructions

The first step is getting the ntuser.dat file from the computer. In most cases the easiest method is to remove the hard drive, and connect it to a working machine.

ntuser.dat is generally located here:
C:\Documents and Settings\(User Name)\ntuser.dat
Where (User Name) is the primary account - Most often it is ‘Owner’ or ‘User’

Now that you have the file, you need to be able to view it. I recommend loadhive.exe (Download it here) from matcode.com.

Just run the program and select the file. It will show you a message with more information. It is important that you do not close this program until you are finished viewing the registry, as it temporarily loads the file, and unloads it again when you exit.

Now run regedit. Under HKEY_LOCAL_MACHINE you will notice a new sub-key called NTUSER. Starting with NTUSER go to Software > Microsoft > Windows NT > Current Version.

In the right window, double-click on DigitalProductID. This is the entry that contains the encoded product key.

We want the information in bytes 52 to 66. You can use the chart below for reference. We need the 15 sets of numbers where the 1’s are located.

0000  00 00 00 00 00 00 00 00  ..
0008  00 00 00 00 00 00 00 00  ..
0010  00 00 00 00 00 00 00 00  ..
0018  00 00 00 00 00 00 00 00  ..
0020  00 00 00 00 00 00 00 00  ..
0028  00 00 00 00 00 00 00 00  ..
0030  00 00 00 00 11 11 11 11  ..
0038  11 11 11 11 11 11 11 11  ..
0040  11 11 11 00 00 00 00 00  ..
0048  00 00 00 00 00 00 00 00  ..
0050  00 00 00 00 00 00 00 00  ..

Now that you have the 15 byte encrypted code, you can type it into my decrypter tool:

Web-based version

Windows XP Key Decrypter Tool

Downloadable stand-alone version (exe)

Windows XP Key Decrypter Tool

Just click ‘Decrypt Code‘ and you will have your 25 digit Windows XP product key!

Troubleshooting

If you cannot find the DigitalProductId key in the file you loaded earlier, try the software hive located here:

\%SystemRoot%\System32\config\software

Load it the same way as before. Under regedit, it will generally create the new entries here: HKEY_LOCAL_MACHINE\SOFTWARE_00 (although the loadhive program will tell you where it puts it).

Final Notes

  • The decrypter tool ignores spaces and dashes, and is not case-sensitive.
  • If you cannot find ntuser.dat, make sure you can view hidden and system files.
  • If you are not sure which user account to select, I recommend searching for all ntuser.dat files on the drive, and using the largest one.
  • Do not attempt to open your own ntuser.dat file with Load Hive, because it is already in use, and you already have access to your own registry :)
  • If you cannot find the proper key with the data you need, try the alternate hive file, mentioned in the troubleshooting section above.

NOTICE!

Please do not ask me how to retrieve the product key from your Windows CD - it is not possible. Also, please do not ask general Windows questions here. The comments below are only for discussion of this particular retrieval method. If you have Windows questions, or questions about product keys in general, search Google.

Pages: « 1713 12 11 10 9 [8] 7 6 5 4 31 » Show All

  1. DjLizard: That information is used to determine the Windows version from the product ID, not the product key. There is a difference.

  2. Falcon4: (re comment 113) http://wiki.DjLizard.net/Product_IDs

  3. Hi
    Plz help me to know win95 product key.
    i am installing win95 in my desktop, i lost key.
    Plz help me.

  4. Jens: Yes it will, but we are talking about things you can do when you just have the key. It is very easy when you have it installed already.

  5. 116
    Carlos Garcia

    I have a legitimate copy of Filemaker Pro Server 5, but I lost the product key. Do you have a program that will recover the licence key?

  6. 115
    Jens

    Version 2.01 beta of the Magical Jellybean Finder will find out what version of XP you are using. And other things, too.

  7. Falcon4: I have been trying to figure out the answer to that one for quite some time. I would love to know myself.

  8. Oy… doesn’t really help, I can get this functionality with much less hassle using Magical Jelly Bean Keyfinder (which can load remote hives automatically too). What I don’t have though is the ability to figure out what type of installation it is - OEM, VLM, or Retail! So I’m sitting here with a code from a trashed Windows installation, not knowing if the person had OEM, VLM, or Retail on there. The only way I’m isolating it is by trying to install each one, then punching the code into it when it asks. So far I know it’s not OEM, not Retail, so that leaves only one.

    But without the two hours of repatative, unnecessary work, how could I tell what type of code it is? I know these things can be decoded - I saw someone’s CD key writeup on how they work, but it’s rather complicated. Can’t someone write something like that into their program?

  9. 112
    Fate

    Thank you, I have it, once again thank you for everything!

  10. BALARAJU: Why could you only get 8 sets? You may have been looking on the wrong lines.

  11. Hi ! I’d use your directions to obtain the Binary values where the 1’s are located, but unfortunately I could pick up only 8 sets. What am I to do for the other 7 sets?
    Bye !

  12. Matthew: As long as you picked the right numbers it should be correct. since it is a 2 digit hex code, there is a 1 in 256 chance that it could be 00 ;)

  13. 108
    Matthew

    Hello,

    I followed the steps like you said, I have the “DigitalProductID” infront of me. I wrote down all the numbers you told me to which comes to a total of 15 sets, but the last set of numbers is a double 00. Looks abit weird, not too sure it’s right?

    Get back to me :)

  14. JeffB: Finally - a comment from someone not asking for an impossible task! ;) Glad you like the page.

  15. 106
    JeffB

    Great stuff … I dont know which was more fun. following the easy and clear directions right down to the troubleshooting step, or reading all of the questions about “how do I get my XP key off my CD”… LOL

Pages: « 1713 12 11 10 9 [8] 7 6 5 4 31 » Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.