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.

Topic: Tools | RSS Feed

Pages: « 16 15 [14] 13 12 11 10 9 8 7 61 » Show All

  1. 210
    New

    hi
    Can I change the key of my old system with the new key without fomatting the system. I have win xp profe. installed in my comp and I also have the win Xp Profe. keys with me.

  2. 209
    Prabhu

    All:

    I understand that this method is working 100% without having any problem using Decryptor Tool and I hope that there are lots of VB Script to find the XP CD KEY from DigitalProductID.

    My Question is:

    Is it possible to find the Decode the CD KEY from the “ProductID”
    I mean using this “55274-640-8365391-23739″

    If anyone can find a solution to the above mentioned mail me

    prathaprabhutemp@yahoo.com

  3. 208
    QueenB

    However,

    I’d like to know the answers to posts 202 and 209.

    And how does one get the encrypted code from DigitalProductId4.

    Thanks.

  4. 207
    QueenB

    Aw heck… maybe I should just read the other comments huh.

    I’m such a tool.

  5. 206
    QueenB

    I’m using Vista on my laptop. The programmes were pre-installed on the pc so there’s no installation disc - the product key is located on a sticker on the underneath of my laptop. only problem is it doesn’t work - when I type it in to access the programmes on my pc it say the key is “incorrect”.

    I need the correct key, so following your tutorial…Vista is a little different from XP but I eventually managed to locate the DigitalProductID…I followed your instructions using the chart you provided and the decryptor tool - the product key came up fine, and it’s completely different from the one on the bottom of my laptop….but it still doesn’t work.

    I’m pretty much a complete novice when it comes to anything computer-related so please bear with me if I’m being totally thick :)

    In the same folder, there’s a second file: DigitalProductId4 it looks different from DigitalProductId - the encrypted code appears to be in a different place, not between 0030 and 0040, so can’t be found using the chart you provided. So not sure what to do with this one…

    There’s also a file, ProductId, which shows a 20 digit number, separated by some dashes (xxxxx-xxx-xxxxxxx-xxxxx) which doesn’t look like a product ID :) do you know what this is?

    I thought the same product key could be used for all the programmes installed…maybe this is not the case? Windows works fine, it’s just the other programmes I can’t use properly.

    Should I be speaking to the original seller d’ya think? I’d like to avoid that preferably…

    Sorry for all the questions! If anyone can enlighten me I’d be grateful.

  6. 205
    andi

    Dude…
    Thx so much for this tutorial.
    But: I think i am a pro, but it needs hours and different tries again and again by gettin´what you mean with “15″ characters.
    A screenshot and the sentence “write the 15 letters from line 0030 10th letterpairs to line 0040 6th letterpairs” may help others too to understand what you mean.

    Thx so much!

  7. 204
    RickH

    Hey Admin,

    I’m devastated. I “encrypted” a folder containing all JOURNAL items! Yeah, terrible… Then I forgot, or actually didn’t know to save the key… Later I had to reinstall windows XP Home… I saved all my “data” files to two different hard drives… I then installed Windows XP Home… I couldn’t access the “journal” files… I couldn’t figure out exactly why… (of course it’s obvious now)… But my install of Windows XP Home had some qwerks so my computer guy (family) installed Windows XP Pro for me after we’d saved my data files…

    So, I saved the folder itself… Is there any way that the key to those folders is connected to the backed up hard drives? Can I recover these files using your software?

    Please help me, I’m desperate.

    thanks, Rick.

  8. I have a different sort of problem. I had a hard drive from an old computer with a licensed copy of WinXPsp2, and I wanted to take that drive and install it on a second computer (as a dual boot) running linux.
    Now, I can mount my WinXP drive as ntfs under linux and browse through the file system. I just don’t know how to find the 30-char hex string for the encrypted product key.
    Any insights would be most helpful!

  9. 202
    James

    Thanks so much for this valuable information. I was stuck in an XP reinstall and couldn’t find my product key. This really bailed me out.

  10. 201
    wolf

    I just wanted to say thanks. I did what you said and it worked. I didn’t do everything though. I just went straight to the “regedit” and got the digitalproductid and verified it with what I know is the product id and it works. I’m just curious how you made the decryption tool. That thing is really cool. If you could let me know, I’m really interested.

  11. 200
    natasha

    Thankyou so much for this article :) After finally figuring out I needed to load the software hive all worked brilliantly. :)

  12. 199
    nate

    So I’m not sure if this is possible without the system intact to produce some sort of hash? but i have the product-id which i’m hoping might be the same as the hex or binary you are extracting/decrypting with your current tool. I installed an OS over windows and wrote down the product-id not realizing it wasn’t the actual key….

    the product-id is in the form XXXXX-XXX-XXXXXXX-XXXXX and seems to be all decimal

  13. 198
    brendan

    ok, I see. Scratch last post. Makes sense now.

  14. 197
    brendan

    Sorry I must be dim, I don’t understand how to identify the numbers to enter into the decrypter. From the example I gather you need 15 sets containing 1’s. Thing is I only have 9. I take it that the 1’s are supposed to be in the main body of numbers where they are in pairs? Please help.

  15. 196
    Gean

    Thank you thank you so much im gonna try this now

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.