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. 195
    Buster Guster

    I tried this technique on a 7 year old XP Home installation.
    Microsoft refused to activate an installation based on this number.
    I also tried Magical Jelly Bean. It produced a completely different product key that Microsoft refuses to activate as well.
    What is going on?
    The motherboard of this machine died and has been changed. Is my Windows “BIOS-Locked”?

  2. Thanks a lot!I found what i was looking for, afetr a long time!

  3. 193
    Jeremy

    I used this to get my XP product key.

    What I am interested in is the mathematics behind your decryption tool, can you explain the algorithm for converting the numbers in the DigitalProductID to the valid product key?

    Thank you.

  4. 192
    andrew

    o hey , by the waYy, you can find the product key on your cd, all you have to do is put the xp cd into the drive,wait for auto run to do its thing, exit auto run. then go to the start menu and run a search. set it for searching all files and folders, for the keyword: ” unattend.txt ” , set the search location to the drive you have your xp cd in. about 4 paragraphs or so down, you key will appear . . . it will look something like this :
    [UserData]
    FullName = “Your User Name”
    OrgName = “Your Organization Name”
    ComputerName = *
    ProductKey= “xxxxx-xxxxx-xxxxx-xxxxx-xxxxx” . . . . .
    your key is obviously going ot be the x’s

  5. First, thanks a lot. I found this entry a pair of moths ago when I was desperate for the situation. This method solve my problem!!!

    Personally, I prefer to boot with a Windows livecd instead of mount the drive in another computer. Avoids to get mixed up with hardware unnecessaryly.

    Finally, I want to ask your permision to translate the article to spanish (I understand english better than I wrote) Please!

  6. 190
    jim
  7. 189
    monks010

    >i need to find out the product key of my windows 64x before i install it is this possible?<

  8. i need help getting the vertification code for my windows xp installer

  9. 187
    Jon

    Hey, I see the discussion has shifted to windows vista, so sorry for this, but i have an xp installation question.
    i have 3 dell computers that are running windows xp, all oem, 2 pro, 1 home. i want to format and clean reinstall the xp home on the comp running it, but accidently tossed that cd, so am just left with two pros.
    since i can’t reinstall the xp home without the cd, i’m thinking of just installing one of the dell oem xp pro cd’s on the dell currently running xp home. would this work? i have read that dell oem doesn’t require activation? all 3 comps have totally different configs…could i use the COA from one of the comps running the xp pro? any ideas? and no, i don’t know anyone with a dell oem home xp cd. also, one of the xp pro cd’s has no service packs, the other has service pack 2. thank you!

  10. after change the product key , can i upgrade my computer

  11. 185
    Ken

    Excellent app and instructions, I would include in the instructions that if the key you finally retrieve doesn’t work for your repair/install then try with an upgrade version of the OS install disk (eg. Orange key vs new key)

  12. 184
    Rob

    Very cool tool, thanks! One little suggestion - it would be nice if the final output could be copied/pasted

  13. i tried it and it froze my comp and corrupted the HD woohoo i am sure that is a bad thing… but i am stuck now buying a new version of xp pro i am sure it would have worked on a healthy drive.. thanx

  14. 182
    Qivo

    Dear All.

    The Vista stores the information in a different key.
    If you want to recover your Vista key, find the DigitalProductID4, next to the DigitalProductID in the registry.
    Then you continue the step-by-step instructions, with this key.

  15. 181
    Paul

    Jimbo, Vista product keys are in a different format. Vista beta builds, RC’s and possibly even some early production releases of vista used the old XP format for DigitalProductID, but later releases use a new format and there doesn’t seem to be anyone on the web who has decoded it yet.

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.