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: « 16 15 14 13 [12] 11 10 9 8 7 61 » Show All

  1. 180
    spike

    Fantastic tool, had a totally scrambled hard drive, but managed to load hive from \System Volume Information\_restore{ some guid }\RPxx\snapshot\_REGISTRY_MACHINE_SOFTWARE

  2. 179
    Saleh

    This tool is worked well, while there was no need to run loadhive.exe to see or decrypt the DigitalProductID bytes.
    Please, explain the steps/procedure for decrypting the DigitalProductID bytes manually

  3. 178
    JimboJuice

    It appears that my install of vista business is hiding the DigitalProductID from me. I have found the exact locations described in this writeup and tried to find my vista product key, however the data is simply not where it should be. The section of the product ID that would have the CD Key are all “0″’s. I’m not sure for what reason the data is missing though. My only thought is that I installed vista w/o a key then used the change key option to enter a valid key and activate it. Or perhaps because it is vista business and has decided not to share key info with me. Anywho, I thought I’d ask to see if anyone knew if the data was kept in a different section of the ProductID entry in the registry or perhaps somewhere else. Right now when i use this too, or magic jelly bean or any other key finding tool, they all look to the same spot as this utility and all show BBBBB-BBBBB-BBBBB-BBBBB-BBBBB corrisponding with the all 0’s in the ProductID.

    -Also, can this thing help me find the code to my car door? i’m locked out of it…. /jk

  4. 177
    AEC

    I have found the correct hive and loaded it successfully, but the product ID from the foreign hive and the product ID from my local machine’s hive are coming up the same, I have not tried loading it onto a third machine to see if results are the same. Any ideas on whats going on? I am pulling the bytes depicted in the picture, not the ones mentioned in the instructions.

  5. 176
    Karl

    I tried this on two different computer and none of the ntuser.dats or software.sav’s from either computer had the key entry. I need to retrieve the key from my Father-in-law’s computer but I am losing hope.

  6. 175
    J.L.

    I mean, you do log these decodes, don’t you :)

  7. 174
    bcdm

    Hy!
    I got some old PCs that where to be trashed, but we wanted to store the xp pro keys for later use. Only 1 pc had no sticker on it…

    As i can’t boot from the drive (tough it worked in the old machine wich is unfortunately gone allready) i tried your method and it looked good, sad thing is that neither in the ntuser.dats (i tried them all) nor in the system32/config/software.sav is an entry DigitalProductID.

    search didn’t help, it only found the IE key thingy of the local machine…

    it ‘was’ and Windows xp pro sp2 oem on there…

    any idea what could be the problem? the ntuser files where all readable and the drive seems ok so i am a little confused ^^

    greez bcdm

  8. Will this work on Windows 2000 Pro? If not, what would?

    Thanks.

  9. 172
    Martin

    Thanks helped me to recover a lost XP product key. I did a repair re-install after updating the motherboard. Put in another code to complete reinstallation but wouldn’t let me login in without revalidation. In safe mode only the software file had the key … but the new one. Found file software.sav which contained the original key. Then used keyfinder to replace the XP product key and then revalidate.

  10. 171
    Dominic

    OMG!!!!!!!!! THANK YOU SOOOOOOO MUCH.
    see it all started out my friend got a laptop (used) and he forgot his password. so i thought it was going to be a simple password disk thingy but it didnt work. so i eventualy decided to get my copy of windows and reinstall it on his computor all was well and good untill it asked me for the code and i didnt have the sticker thingy with the code so i tried EVERYTHING and it wouldnt work so i found this article and eventually i got it so thank u . U SAVED MY LIFE !!!! THANK YOU SOOOO MUCH U GUYS ARE THE BEST

  11. Wow, this has to be one of the greatest finds I’ve ever made while looking for tools on the web. We get a lot of kids that have lost their key, or left it at home when they headed off to college. Your software is a life saver for them. Thank you!

  12. 169
    Hiro

    That’s amazing! Thank you so much, worked first time! I thought my key was lost for good.

  13. 168
    Naveen Singh

    Hi,

    I have used same method to retrieve product key of office products and it worked. In general, from the Digital product ID data of any Microsoft product can me used with above calculator to retrieve CD keys.

    Naveen

  14. 167
    Pedro P.

    there is noting on the "Software > Microsoft > Windows NT > Current Version", but i fund "Software > Microsoft > Internet Explorer > Registration"... and it gave me my product key... but my problem still is to activate the windows (XP home)...

  15. 166
    Pedro P.

    there is noting on the “Software > Microsoft > Windows NT > Current Version”, but i fund “Software > Microsoft > Internet Explorer > Registration”… and it gave me my product key… but my problem still is to activate the windows (XP home)…

Pages: « 16 15 14 13 [12] 11 10 9 8 7 61 » 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.