![]() ![]() ![]() I have a PC running Windows 10 with a license that was upgraded from Windows 8, and (as per penguinjeff's bash version below) you need slight modifications to handle such licences. Many thanks indeed to Lenar Hoyt for the Python solution above. public static string ConvertDigitalProductID(string regPath, string searchKey = "DigitalProductID") " So this is the actual C# code I dug up and commented. I took the liberty to convert it to a powershell script: $dpid = Get-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name "DigitalProductId" I found an algorithm about 10 years ago and implemented it in C# (See below) If someone more familiar with scripting/cryptography would be willing to try and follow the decryption script to decrypt the product key by hand, I could e-mail you the exported "DigitalProductId" value, SOFTWARE registry hive, and decryption script.įor those who are not shy to do a little bit of coding. Would anyone be able to guide me further? Perhaps if there's a different way to retrieve the product key from Linux? I've tried contacting Microsoft support and they've been rather unhelpful. I was able to mount the corrupted Windows partition read-only from an Ubuntu live CD and copy the Windows\System32\config\SOFTWARE registry hive, which contains the key & value in question, to a flash drive, but loading this hive into regedit on a working Windows installation and then trying to use scripts or utilities to decrypt the loaded "DigitalProductId" value only returns the product key of the host Windows installation, no matter how much fiddling I try. Windows 7 product keys are stored, encrypted, in the "DigitalProductId" value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion. I want to just perform a fresh install, but my problem is that I do not have my Windows product key written down anywhere, and I am unable to use any scripts or utilities to retrieve it from the registry because I cannot boot into Windows. I have tried everything to try and repair the installation: Windows Startup Repair, chkdsk /r, SFC /scannow, bootrec /rebuildbcd, etc. I accidentally disconnected my hard drive while it was still running and corrupted my Windows 7 installation I am now completely unable to boot into Windows. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |