Recently on Blog
How to get Windows Product Key from DigitalProductId exported out of registry
There are plenty of tools to get Windows Procduct Key Number from the running (online) system, but what if this is not our case and we need to get Windows Product Key Number from the system that won't boot up or we are just not able to run key decoder there? Well it is possible to decode key from such a system as long as we are able to access offline registry database files from that system and as long as that registry database files are not corrupted.
Decoding the Windows Product Key NumberThe process of getting Windows Product Key Number consist of two steps, first is obtaining DigitalProductId from the registry, the second is decoding that DigitalProductId as Windows Product Key Number. We can get DigitalProductId value from the registry programmatically (as key decoders usually do) or we can find and export the value using Regedit.exe tool, which is part of every Windows instalation.
Please do not confuse DigitalProductId with Product ID, which can be found in the System dialog. They are not the same. Windows 10 has ProductId in this format: 00330-00000-00000-00000.
Loading registry hive from offline registryRegedit.exe can load and edit offline registry databases. Registry databases are located in the following location:
We need to access HKEY_LOCAL_MACHINE\SOFTWARE\ registry hive that is located in the following path:
Please note that "SOFTWARE" is the name of the registry database file, %windir% points to the system Windows directory, for example "C:\Windows". To load offline registry database, do the following steps:
- Press the Win+R key combination, Run dialog appears.
- Type in "regedit" (without quotes) and press Enter.
- Confirm UAC prompt to elevate user rights (regedit needs administrator rights to run).
- Regedit tool will appear on the screen.
- Select HKEY_LOCAL_MACHINE key as this will be the place where we will load the offline hive.
- Click on File menu and Load Hive... option. If you have this option greyed out, please make sure you have selected (active) HKEY_LOCAL_MACHINE key.
- Locate and open the offline registry database SOFTWARE file.
- When prompted for a name give it a name you like (e.g. TEST). The name will be used to create a new node in the tree so we can browse the offline registry.
Exporting DigitalProductId from the registryWe can find DigitalProductId in the following registry key:
As we have loaded the offline registry as the "TEST" node, we can actually find DigitalProductId in the following location:
Now to export this key, do following steps:
- Navigate to the HKEY_LOCAL_MACHINE\TEST\Microsoft\Windows NT\CurrentVersion key (you can copy and paste the key name in the key bar under the menu.
- On the right pane you will see registry values for the selected key and you should see the DigitalProductId value as REG_BINARY.
- To export the value, we need to export whole key. Right click on the CurrentVersion key in the left pane and select Export in the context menu that will appear.
- Export Registry File dialog will appear, choose exported file name and location as needed. Keep "Save as type: Registration files (*.reg)" option and check that "Export range: Selected branch" is selected. You should see selected branch HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion under this option.
- Click Save.
- Registry key will be exported in the .reg file. Now we can open this file in any text editor, for example in Notepad.
Opening exported .reg file in the notepadTo open exported .reg file in the notepad, do follwing steps:
- Press the Win+R key combination, Run dialog appears.
- Type in "notepad" (without quotes) and press Enter.
- Notepad will appear.
- Now you can simply drag and drop exported file on the Notepad window, or you can use File - Open... (Ctrl+O) menu to browse the file. If you can't see exported .reg file, select "All files" from the file type selection drop down.
Locating DigitalProductId exported from registryNow when you have open exported .reg file in the Notepad, you should see DigitalProductId value among other key values in the following format:
Selected DigitalProductId section and copy it to the clipboard (Ctrl+C).
"DigitalProductId"=hex:a4,00,00,00,03,00,00,00,30,30,33,33,30,2d,38,30,30,30,\ 30,2d,30,30,30,30,30,2d,41,41,33,32,38,00,ec,0c,00,00,5b,54,48,5d,58,31,39,\ 2d,39,38,38,34,31,00,00,00,ec,0c,00,00,00,00,a8,d2,7b,6e,89,81,4f,6d,09,00,\ 00,00,00,00,f0,87,99,58,20,9a,d7,4d,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,a1,85,e6
Decoding DigitalProductId exported from registryTo decode the value, you can use my tool "Windows Product Key Finder" (you can read more about it here: (Yet Another) Product Key Number Finder for Windows). Since version 1.3 this tool is able to decode DigitalProductId exported from registry. You can download the tool directly here: WinProdKeyFind_v1.3.zip. Windows Product Key Finder is open source, no-install, portable and very simple tool that look like this: Click Decode DigitalProductId button. Decode Windowss Product Key from DigitalProductId value dialog will appear. Paste DigitalProductId from the clipboard to the DigitalProductId key text box as in the following example: Please note that it is important to keep exported DigitalProductId in the format as shown in the examples. If you are decoding DigitalProductId for Windows 7 or older Windows systems (Vista and XP), please select Up to Windows 7 (old) option, otherwise keep Windows 8 and newer (new) option in the version selection drop down. Finally press the Parse DigitalProductId button to parse the DigitalProductId. Now you should see decoded Windows Product Key Number in the text box.
Final wordsWe've seen how to export DigitalProductId value from the offline registry database file and how to decode Windows Product Key Number from that value. Let me know what you think about down below in the comments!