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. 270
    shianne

    lost product key for xp help

  2. 269
    Michael Utterback

    I cant believe this frekin worked!!!!!! Iv been sitting here for hours trying to fig this out! A couple of beers later and a stroke of luck on the search engine and I GOT IT! Cant thank you enough!!

  3. 268
    imaz
  4. 267
    chinmaya

    i need a window vista product key

  5. 266
    Suresh Babu

    Hello There
    I tried this method for a crashed computer and got the key.
    But when I punch in the key to install, it says an invalid key.
    So I located the digitalproductkey on my working computer registry and decoded the cd key and when I matched against my label, its totally different CD key.
    Does it mean that windows changed the encryption process?
    I double checked everything. When I run with jellybean, I’m getting
    the same CD key as the above process.

  6. 265
    Spanners

    For those having problems finding the DigitalProductID I have found an alternate place to find it.
    After loading they SOFTWARE hive you can find the key at HLM > SOFTWARE_00 > Microsoft > Internet Explorer > Registration
    This location also has the ProductId which can help you identify which disc was installed.

  7. 264
    Sami berrezouga

    The keys for windows vista entrepris please i need to this keys :’(
    samivip@live.fr

  8. 263
    Ronny

    joel to solve ur permission issues right click on the loadhive.exe program and click run as administrator.
    my problem is i can’t find the ‘digitalproductID’ in the current version folder. any help?

  9. 262
    Steve M

    Sister’s computer went bits-up… no recorded XP key, of course!
    I finally thought I was saved, after several tools that claimed to read external system disk failed. Hope dropped to despair after all the prescribed hives failed to produce a result. After poking around in several dark corners, the following file finally worked for me:
    \%SystemRoot%\tmp\software

    Thanks!

  10. 261
    Joel

    I’m running into permission issues when trying to open using the loadhive. Does anyone have a work around? my hard drive in my laptop won’t boot, but I can see the data if connected as a usb drive.

  11. 260
    Jake

    Thanks a million!!! I had lost my product key for Office Pro 2007 and was trying to instal on my laptop. Fortunately the software was installed earlier on my wife’s laptop and I was able to find and decode the product key using the instructions in this article. Saved me some major heart-ache, thanks.

  12. 259
    Derek Lee

    Ok, guess it’s just getting late. I went over it one more time and got it. Thanks a million!

  13. 258
    Derek Lee

    I’ve read the whole article and tried the alternate file under the trouble shooting section and having absolutely no luck whatsoever.

  14. 257
    Stephanye

    I could not find the ntuser.dat file on a Windows XP Spanish installation. I have the sectors and would like to know when the instructions are to get the numbers in bytes 52 to 66, what sector is it referencing. There are several sectors with position 52 to 66 in each sector. Which sector should I get the numbers to decrypt?

  15. 256
    Stephen Campbell

    I have tried all the online key finders and they keep resulting in
    BBBBB-BBBBB-BBBBB-BBBBB-BBBBB. That is because after Vista SP1 and beyond are kept encyrpted in the registry by Microsoft. I cant locate my ntuser.dat file in my user profile and I cannot find this registry entry in my HKLM folders/subfolders. I hope somebody will come up with an easier approach to find and decrypt this information other than this or using any old online key finders that only work for XP and back. Any suggestions, feel free to post.

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.