Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.windows-10 > #94639
| From | Paul <nospam@needed.invalid> |
|---|---|
| Newsgroups | alt.comp.os.windows-10 |
| Subject | Re: Windows Product Key |
| Date | 2019-07-14 22:22 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <qggo23$8rc$1@dont-email.me> (permalink) |
| References | <qgd4gh$id$1@dont-email.me> <qgd6i1$ccm$1@dont-email.me> <qgd8hg$nev$1@dont-email.me> <qgf5n7$hl6$1@dont-email.me> <qgggla$2q4$1@dont-email.me> |
Cameo wrote:
> On 7/14/2019 5:03 AM, Paul wrote:
>> Cameo wrote:
>>> On 7/13/2019 11:05 AM, Paul in Houston TX wrote:
>>>> Cameo wrote:
>>>>> My good old HP laptop that I had Windows 7 running on, has finally
>>>>> kicked the dust. I also have a newer Lenovo IdeaPad laptop that runs
>>>>> Windows 10. I needed the Win 7 installation to run my home automation
>>>>> software (ActiveHome Pro) on because the vendor have not upgraded
>>>>> it to
>>>>> run on Win10. I also have an old Umax Astra 2200 flat bad scanner,
>>>>> that
>>>>> can only run on Windows XP, which I virtual machined in the Win7 Pro.
>>>>>
>>>>> So I decided to install these Win XP and Win7 operating systems in
>>>>> Win10
>>>>> within the Oracle VM Virtual Box. Unfortunately that only works for 30
>>>>> days without valid Windows Product Keys from Microsoft. Also
>>>>> unfortunately, over the years I tossed out the original XP CDs and I
>>>>> only could find an updater CD set for my Win7 whose Product Key is not
>>>>> acceptable by my virtual installation. So here I am now without valid
>>>>> Product Keys even though they must be embedded somewhere in the hard
>>>>> drive of my old Win7 which I removed from and can access as a USB
>>>>> drive
>>>>> with an adapter.
>>>>>
>>>>> Can anybody suggest an easy, and hopefully free way to extract those
>>>>> product keys from the Win7 HD or Microsoft Support?
>>>>
>>>> Have you tried a Key Finder?
>>>> https://www.digitaltrends.com/computing/best-product-key-finders/
>>>>
>>>
>>> Thanks, but I haven't tried any of them because they seem to imply
>>> that they do the find in the HD of a functioning Windows system. I
>>> need a key finder that will find the product key in a removed Windows
>>> 7 HD that is attached to my Win10 as a USB drive.
>>
>> OK, to start with, here is "getkey.vbs", a piece of code
>> that happened to have a few transcription errors when I
>> found it in Google. You can test this on your working machine,
>> to get some idea whether it works.
>>
>> *********************** getkey.vbs *************************
>> Set WshShell = CreateObject("WScript.Shell")
>> registryLocation = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
>> NT\CurrentVersion\DigitalProductId"
>>
>> MsgBox ConvertHumanReadable(WshShell.RegRead(registryLocation))
>>
>> Function ConvertHumanReadable(Key)
>> Const KeyOffset = 52
>> i = 28
>> Chars = "BCDFGHJKMPQRTVWXY2346789"
>> Do
>> Current = 0
>> x = 14
>> Do
>> Current = Current * 256
>> Current = Key(x + KeyOffset) + Current
>> Key(x + KeyOffset) = (Current \ 24) And 255
>> Current = Current Mod 24
>> x = x -1
>> Loop While x >= 0
>> i = i -1
>> KeyOutput = Mid(Chars, Current + 1, 1) & KeyOutput
>> If (((29 - i) Mod 6) = 0) And (i <> -1) Then
>> i = i -1
>> KeyOutput = "-" & KeyOutput
>> End If
>> Loop While i >= 0
>> ConvertHumanReadable = KeyOutput
>> End Function
>> *********************** getkey.vbs *************************
>>
>> You can run that in a Command Prompt window. Typing control-C to
>> copy that, will allow you to paste it into Notepad.
>>
>> I can make a minor modification to that file, and get it
>> to unpack a string of hex characters. In this case, it's
>> ignoring the current OS key and just converting the string
>> constant I'm feeding it. It turns out the sample key is
>> a key that belongs to a game of Halo.
>>
>> You will need an offline registry editor, to access the DigitalProductID
>> and read out the hex characters to be entered here.
>>
>> *********************** getkey2.vbs *************************
>> Set WshShell = CreateObject("WScript.Shell")
>> registryLocation = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
>> NT\CurrentVersion\DigitalProductId"
>>
>> MsgBox ConvertHumanReadable(WshShell.RegRead(registryLocation))
>>
>> Function ConvertHumanReadable(Key)
>>
>> 'The following three lines of code for a hex string array from...
>>
>> 'https://stackoverflow.com/questions/26967459/convert-hex-string-into-array-and-write-it-to-registry-vbscript
>>
>>
>> 's="7F,6A,51,4C,8E,5A,91,56,EA,34,77,1A,B7,F2,02"
>> 'Should return Halo game key RRQ4Y-TV33X-D484J-V7843-HHHVK
>> 'Edit the following string with the DigitalProductID hex at
>> offset 52 for 15 hex bytes
>>
>> s="7F,6A,51,4C,8E,5A,91,56,EA,34,77,1A,B7,F2,02"
>> Kee=Split(s, ",")
>> For i = 0 To UBound(Kee) : Kee(i) = CByte("&H" & Kee(i)) : Next
>>
>> Const KeyOffset = 0
>> i = 28
>> Chars = "BCDFGHJKMPQRTVWXY2346789"
>> Do
>> Current = 0
>> x = 14
>> Do
>> Current = Current * 256
>> Current = Kee(x + KeyOffset) + Current
>> Kee(x + KeyOffset) = (Current \ 24) And 255
>> Current = Current Mod 24
>> x = x -1
>> Loop While x >= 0
>> i = i -1
>> KeyOutput = Mid(Chars, Current + 1, 1) & KeyOutput
>> If (((29 - i) Mod 6) = 0) And (i <> -1) Then
>> i = i -1
>> KeyOutput = "-" & KeyOutput
>> End If
>> Loop While i >= 0
>> ConvertHumanReadable = KeyOutput
>> End Function
>> *********************** getkey2.vbs *************************
>>
>> An example of an offline registry editor, would be the
>> Kaspersky Rescue disc one. This is a picture from
>> something I was doing recently (it doesn't show
>> a DigitalProductID or anything, just shows the very
>> nice editor for offline C: partitions).
>>
>> https://i.postimg.cc/3NBpbVnN/kaspersky-rescue-disc-regedit.gif
>>
>> Using the Halo product key value, a Google search dug
>> up a standalone converter for the hex string. This would
>> be doing roughly what the VBS does.
>>
>> https://sites.google.com/site/spoon47/haloproductkey
>>
>> Note that, the above works for Windows 7. The C code
>> I compiled from my other post, has handlers for Win8
>> and Win10, where apparently there is some small variation
>> in the format. The older converters might not work right
>> with DigitalProductID concept in W8/W10. More research
>> would be required to verify those.
>>
>> But at least there's a possibility the above method
>> will work with a Win7 key.
>>
>> And my assumption now is, you installed Win7 from
>> a system builder disc and are using a real key
>> which is embedded in the defunct C: drive.
>>
>> Paul
>
> Oh, c'mon Paul! You think everybody on this news group is a programming
> geek?
The beauty of these examples, is they're VBScript and
don't have to be compiled.
Just copy and paste the code into a text file, and rename
the file as indicated (getkey.vbs). Then, run it.
getkey.vbs was the original file I found, that
reads the DigitalProductID from the registry, and
converts the 15 byte binary section, into a
25 character key.
getkey.vbs should work on your current, running Windows 7
machine, and the key you get should match what you
put into that machine.
Then, I added three lines of code to the file, a
place where you could manually enter 15 bytes, then
run the script.
Using the Kaspersky registry program (or any other
offline reg editor you happen to know how to operate),
you can use that to find the Windows NT DigitalProductID field.
Starting at byte 52 decimal. Since there are 0x00's on either
side of the 15 bytes, it stands out pretty good.
You put that value into the getkey2.vbs and run it
and it converts the 15 bytes back into a key you can use.
Part of the reason for doing these, is to show the
power of "Copy and Paste" programming. I used two web pages,
one contributing only three lines, to help me make a new program.
If I didn't have web examples, I couldn't program my way
out of a wet paper bag.
Paul
Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 10:30 -0700
Re: Windows Product Key Paul in Houston TX <Paul@Houston.Texas> - 2019-07-13 13:05 -0500
Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 11:39 -0700
Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-13 15:57 -0400
Re: Windows Product Key Lucifer <LuciferMorningstar@bigpond.com> - 2019-07-14 09:24 +1000
Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 19:24 -0700
Re: Windows Product Key Lucifer <LuciferMorningstar@bigpond.com> - 2019-07-17 15:26 +1000
Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-17 03:17 -0400
Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-14 08:03 -0400
Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-14 17:16 -0700
Re: Windows Product Key "Mayayana" <mayayana@invalid.nospam> - 2019-07-14 21:40 -0400
Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-15 15:24 -0700
Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-15 19:00 -0400
Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-16 13:06 -0700
Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-16 17:16 -0400
Re: Windows Product Key NotMe <NotMe@example.invalid> - 2019-07-16 15:49 -0500
Re: Windows Product Key NotMe <NotMe@example.com> - 2019-07-17 11:36 -0500
Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-14 22:22 -0400
Re: Windows Product Key "Mayayana" <mayayana@invalid.nospam> - 2019-07-15 08:42 -0400
Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-15 12:13 -0400
Re: Windows Product Key The Man in the High Castle <nospaming@nospam.com> - 2019-07-13 20:52 +0200
Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 12:35 -0700
Re: Windows Product Key "Mayayana" <mayayana@invalid.nospam> - 2019-07-13 15:16 -0400
Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 12:40 -0700
Re: Windows Product Key Big Al <Big_Al@invalid.com> - 2019-07-13 16:26 -0400
Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 19:32 -0700
Re: Windows Product Key "Mayayana" <mayayana@invalid.nospam> - 2019-07-13 17:34 -0400
Re: Windows Product Key John <sysop183@nofido.org> - 2019-07-15 10:36 +0100
Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-15 15:27 -0700
Re: Windows Product Key NotMe <NotMe@example.invalid> - 2019-07-16 13:40 -0500
Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-16 13:12 -0700
csiph-web