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.

  If you have found this page useful, please consider donating. Thanks!

Pages: « 21 20 [19] 18 17 16 15 14 13 12 111 » Show All

  1. 285
    Joe

    easier fix …. if you can not boot into the machine use an external drive connection and extract ’software’ hive located here: \%SystemRoot%\System32\config\software (from non booting machine) (usually C:\System32\config\software (no extension))

    use a program from nirsoft called ProduKey from http://www.nirsoft.net/utils/product_cd_key_viewer.html

    Run the program with admin rights
    Click File -> select source -> use select procuct code from extrenal registry hive and browse to where you extracted the software file to -> click ok -> and you have your keys from the system remote hard drive…..
    If you can boot into windows then run the program and it will extract the codes (along with office codes)

    ran this process on a non bootable machine and was able to load in windows Vista and Office 07 again

  2. 284
    Erland

    I have had no success…
    When I open regedit I only end up in the registry of the booted Win XP installation NOT the registry loaded with LoadHive !
    LoadHive is still running, so no mistake there…

    Anyone that can solve the mistery ?

    Regards

  3. 283
    Sally sung

    Hi
    There’s also a software that does this at http://www.password-genius.com/how-to/how-to-recover-my-windows-xp-product-key.html.The advantage is that it can even find out your Windows system CD Key when your Windows can’t startup.Also, This software will find many other keys like office XP, office 2007 and more .
    Hope this can help you!

  4. 282
    Dave

    After formatting and re-installing XP Home OEM, I realized I had lost my sticker with the product key on it. I called MS and the retailer and both told me I was screwed. Everything I found online confirmed that belief until I found this article. Because I had already re-formatted and re-installed the files mentioned in this article were gone and I could not use them. So I got creative. I used a free file recovery software and deep scan searched for deleted files and searched through the list of 150,000+ files for anything I could use and after 2 days I finally found a year old system restore snapshot of the SOFTWARE hive and was able to load it into the registry. Then I found the DigitalProductID and used the decryption tool on this site. I seriously doubted it was going to work but as the product key appeared on the screen I recognized the first set of numbers right away. Put them in the windows activation screen and was approved. Thank you for this info you saved me over $100 for a new license!

  5. 281
    harry

    thinkinking of writing a VB prog but cannot understand the algorythm to decode. Ionce knew this but the years dont help

  6. 280
    acacia

    hi
    i need help to know how to find the product key in orginal cd of
    windows vista is it typed in it? like xp cd?
    thanks for help

  7. I forgot to say also your real answer is magicjellybean key finder
    open source no trojans etc

    I cannot remember what file you have to scroll down in it

  8. LOL you nub the xp serial number IS on the cd and its not even encrypted.

    I found it on my own and have never seen a tutorial on how to do it.

    I cannot remember what file you have to scroll down in it

  9. 277
    ratna

    hi frends ,i’m gettingi notice in my pc dat is “you may b a victim of software encounerting pls tel me if u have 25 digit key word for windows xp crack..pls send me ur valuable suggesions and solutions to me pls its my humble request mail me at
    venkatjdm@in.com

  10. 276
    venkat

    hi frends,pls tel me if u have 25 digit key for windows xp,
    pls reply me ,i’m waiting 4 ur reply jsut spend ur 2 minutes time 4 dis………mail me to
    venkatjdm@in.com

  11. You are too cool. What a great tool and service. Followed
    directions exactly and found the key on a free bee 40G drive.
    It was OEM ver and nothing in ntuser.dat, but found in
    sys32/con fig/software.

  12. my windows vista ultimate edition was expired after 30 days so please send me any key to active vista please

  13. 273
    Balam

    Nice tool…
    I wondered if the first couple of numbers count as 0 or 1 in the 52 to 66 count reference…

    Anyway, I’ll extract two sets and see which one is the good… tnkz!

  14. 272
    athan

    fick u

  15. 271
    Gregory Fernandes

    Hi,

    My problem is like this. I have a HP dv3510nr with VISTA HOM PREMIUM OEM. It crashed for some reason and i can’t get it to recover. I tried to recover from the RECOVERY PARTITION, but it didn’t work. I tried reinstalling Vista from the recovery partion but it stops at the completion stage.

    I even tried to install from another VISTA INSTALLATION CD, and the same thing happens. It stops at completion stage.

    Can anyone help me out ? Please inform if we need any other details.

    thanks
    Greg

Pages: « 21 20 [19] 18 17 16 15 14 13 12 111 » 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.