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. I need a product ket

  2. 299
    dummy

    http://www.whatsmypass.com/getkey-3-0
    getkey worked for getting the key and it even tells you what type of CD product key was used to install (like oem,msdn,retail key) so you know which CD type to use to reinstall windows

  3. KEYFINDER 2.0.1 OPTION…… JUST LOAD THE FOLDER WINDOWS FROM THE EXTERNAL DRIVE..
    Load Hive option – allows you to load the registry hive of another Windows installation. To use, put the hard drive in a working machine (must also be Windows 2000,XP or Vista) or use Windows PE (not tested, should work) and click Load Hive. Then point it to the dead Windows install. If you’re using Windows Vista, Administrator rights are required for this feature. You may have to right click on the Keyfinder and run as Administrator.
    Improved Save & Print! – save & print options will now include all keys. Save is also available in text or CSV

  4. 297
    Ahmgan

    Mine problem discovering installation drom XP, Vista, win 7 CD/DVD

  5. 296
    Omega

    Had a one day notice to activate this computer since it was recently repaired. So I just tried this with Vista Home Premium and it works like a charm. Thank you very much.

  6. 295
    xyz
  7. 294
    Ian

    @Jackson Joshua: That’s not the case on all systems. That file contains a copy of the automation settings that were used to install Windows. If you install Windows yourself from CD/DVD (and not using an answer file to automate the install), that file will not contain your product key.

    There is a very good chance that your method will work on systems manufactured by Dell, HP, Acer, etc, but it’s not bound to work on any system in which the owner installed his/her own copy of Windows XP from scratch.

  8. Oh My God! You can get the window XP key from C drive itself! Dont waste your time using softwares….Just copy paste this link in your explorer browser on top..or browse through this link to access the file. You will find the XP key under [UserData]

    C:\WINDOWS\system32\$winnt$.inf

  9. Just grabbed GetKey 3.0 that Will suggested
    http://www.whatsmypass.com/getkey-3-0

    I had a computer that wouldnt start windows so i slaved the drive to my other computer and was able to recover my product key :D

    The site says you can boot up with a winPe disk also and use it too, slaving it was easier though

  10. 291
    Mia

    The Windows 25-character Product Key is stored on the CD packaging on a bright orange sticker
    that says “Do not lose this number.” If it was an factory installed license, it’s stored on a label that the PC manufacturer affixed to the exterior of the PC case, or on the bottom of a laptop.
    If you can’t find your product key, Password Genius will help you solve this problem easily.
    Check it out: http://www.password-genius.com/how-to/how-to-recover-my-windows-xp-product-key.html

  11. 290
    Alex

    i got the windows xp home edition cd only lost my key, my computer can’t start as i format the old OP windows as was folty/wirus was braking him down, every ware was a copy/ how to get the Windows xp key from cd cos my key on com box dont match-it’s a retail and my cd it’s oem xp home premium edition, pleas help me if You can, thx for time

  12. 289
    just me

    This tool is excelent, it only lacks the ability to copy paste the key that is generated from the code… :) )))))))))))

  13. 288
    mrno

    Danke!!!

  14. http://www.whatsmypass.com/getkey-3-0
    can get local off offline product key of windows or office

  15. I am presently out of town. I brought my Microsoft Windows Work Suite 2000, Disc #1 with me, but not the box with the product key on on the lable. I need to load my MS Word 2000 back on to my computer. I have the entire 2000 set of discs with me. Is there a way I can acquire the key? I want to install the Microsoft Word Program from the works suite on to my computer? Don

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.