Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #94513 > unrolled thread

Windows Product Key

Started byCameo <cameo@unreal.invalid>
First post2019-07-13 10:30 -0700
Last post2019-07-16 13:12 -0700
Articles 20 on this page of 31 — 10 participants

Back to article view | Back to alt.comp.os.windows-10


Contents

  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

Page 1 of 2  [1] 2  Next page →


#94513 — Windows Product Key

FromCameo <cameo@unreal.invalid>
Date2019-07-13 10:30 -0700
SubjectWindows Product Key
Message-ID<qgd4gh$id$1@dont-email.me>
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?

[toc] | [next] | [standalone]


#94515

FromPaul in Houston TX <Paul@Houston.Texas>
Date2019-07-13 13:05 -0500
Message-ID<qgd6i1$ccm$1@dont-email.me>
In reply to#94513
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/

[toc] | [prev] | [next] | [standalone]


#94519

FromCameo <cameo@unreal.invalid>
Date2019-07-13 11:39 -0700
Message-ID<qgd8hg$nev$1@dont-email.me>
In reply to#94515
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.

[toc] | [prev] | [next] | [standalone]


#94529

FromPaul <nospam@needed.invalid>
Date2019-07-13 15:57 -0400
Message-ID<qgdd3a$hac$1@dont-email.me>
In reply to#94519
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.

The COA sticker on a Windows 7 machine, would have
an "emergency install" key which is "unique". No
two laptops of the same make and model, have the
same COA license key.

The license key on the hard drive is "bogus", a "fake"
and the same for lots and lots of models of computers.
Microsoft activation is not likely to accept the "bogus"
key on the hard drive for any activation purpose, as it
is an "OEM" key and belongs to the laptop model only.

*******

The following then, is largely a waste of your time, and is
included for educational purposes. This would be useful
to someone who had installed a Retail OS and had somehow lost
the COA sticker that came in the box.

https://www.howtogeek.com/206329/how-to-find-your-lost-windows-or-office-product-keys/

    HKLM\Software\Microsoft\Windows NT\CurrentVersion\DigitalProductId

It's a REG_BINARY.

The key starts at a certain offset.

The 25 letter key aaaaa-bbbbb-ccccc-ddddd-eeeee is
"encoded" not "encrypted" and uses fewer sequential
characters. It must be run through a short program
to convert it back to the 25 character key.

https://www.gtopala.com/siw/raw-key-digitalproductid.php

    Raw key is offset by 0x34 (decimal 52) bytes,
    the length of the key is (decimal 15) byte.

Notice in the example, the 15 byte section is surrounded
with 0x00 bytes, making visual recognition easier.

    7F 6A 51 4C 8E 5A 91 56 EA 34 77 1A B7 F2 02

*************************************************

This is a C# version of the decoder, and useless unless you're
suitably equipped to compile it.

public static string ConvertDigitalProductID(string regPath, string searchKey = "DigitalProductID") {
     // Open the sub key i.E.: "Software\Microsoft\Windows NT\CurrentVersion"
     var regkey = Registry.LocalMachine.OpenSubKey(regPath, false);
     // Retreive the value of "DigitalProductId"
     var dpid = (byte[])regkey.GetValue(searchKey);
     // Prepare an array for the relevant parts
     var idpart = new byte[15];

     // Copy the relevant parts of the array
     Array.Copy(dpid, 52, idpart, 0, 15);

     // Prepare the chars that will make up the key
     var charStore = "BCDFGHJKMPQRTVWXY2346789";  // char set is limited for readability

     // Prepare a string for the result
     string productkey = "";

     // We need 24 iterations (one for each character)
     for(int i = 0; i < 25; i++) {

         int c = 0;
         // Go through each of the 15 bytes of our dpid
         for(int j = 14; j >= 0; j--) {
             // Shift the current byte to the left and xor in the next byte
             c = (c << 8) ^ idpart[j];

             // Leave the result of the division in the current position
             idpart[j] = (byte)(c / 24);

             // Take the rest of the division forward to the next round
             c %= 24;
         }
         // After each round, add a character from the charStore to our key
         productkey = charStore[c] + productkey;
     }

     // Insert the dashes
     for(int i = 4; i > 0; i--) {
         productkey = productkey.Insert(i * 5, "-");
     }

     return productkey;
}
*************************************************

To select one of 24 character possibilities, would take
a five bit code. The "hex" in the fifteen bytes gives
us 15*8 = 120 bits. Divide by 5 gives 24 fields. Maybe the
last character is some residue (from division?).

Here is a C version.

https://pastebin.com/FYYFWFMU

    Paul

[toc] | [prev] | [next] | [standalone]


#94541

FromLucifer <LuciferMorningstar@bigpond.com>
Date2019-07-14 09:24 +1000
Message-ID<8upkieh4qmbbii0ff8j1qgauilo086dbd1@4ax.com>
In reply to#94519
On Sat, 13 Jul 2019 11:39:40 -0700, Cameo <cameo@unreal.invalid>
wrote:

>On 13/7/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.

Boot your working PC from your Windows 7 HD then use the key finder.

[toc] | [prev] | [next] | [standalone]


#94548

FromCameo <cameo@unreal.invalid>
Date2019-07-13 19:24 -0700
Message-ID<qge3o7$p8d$1@dont-email.me>
In reply to#94541
On 7/13/2019 4:24 PM, Lucifer wrote:
> On Sat, 13 Jul 2019 11:39:40 -0700, Cameo <cameo@unreal.invalid>
> wrote:
> 
>> On 13/7/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.
> 
> Boot your working PC from your Windows 7 HD then use the key finder.
> 

That would not work because the two laptops need different hardware drivers.

[toc] | [prev] | [next] | [standalone]


#94735

FromLucifer <LuciferMorningstar@bigpond.com>
Date2019-07-17 15:26 +1000
Message-ID<f9ctiepiregatd1friopsv3k1lo9hlma5t@4ax.com>
In reply to#94548
On Sat, 13 Jul 2019 19:24:07 -0700, Cameo <cameo@unreal.invalid>
wrote:

>On 13/7/2019 4:24 PM, Lucifer wrote:
>> On Sat, 13 Jul 2019 11:39:40 -0700, Cameo <cameo@unreal.invalid>
>> wrote:
>> 
>>> On 13/7/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.
>> 
>> Boot your working PC from your Windows 7 HD then use the key finder.
>> 
>
>That would not work because the two laptops need different hardware drivers.

It may work well enough to run the key finder.

[toc] | [prev] | [next] | [standalone]


#94739

FromPaul <nospam@needed.invalid>
Date2019-07-17 03:17 -0400
Message-ID<qgmi23$a4r$1@dont-email.me>
In reply to#94548
Cameo wrote:
> On 7/13/2019 4:24 PM, Lucifer wrote:
>> On Sat, 13 Jul 2019 11:39:40 -0700, Cameo <cameo@unreal.invalid>
>> wrote:
>>
>>> On 13/7/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.
>>
>> Boot your working PC from your Windows 7 HD then use the key finder.
>>
> 
> That would not work because the two laptops need different hardware 
> drivers.
> 

Nirsoft has an OfflineRegistryView. This will show the
hex string, without needing the Kaspersky rescue CD.

https://www.nirsoft.net/utils/offline_registry_view.html

    https://www.nirsoft.net/utils/offlineregistryview.zip

What you do, is connect the hard drive from the dead copy
of Windows and locate the "SOFTWARE" file in config. That's
where HKLM\Software is stored.

I copied the 140MB SOFTWARE file to my scratch drive and
put a copy of OfflineRegistryView.exe there as well. Using
that program, plus the "getkey2.vbs", I can get the
license key.

https://i.postimg.cc/0QmP3YWx/nirsoft-to-the-rescue.gif

    Paul

[toc] | [prev] | [next] | [standalone]


#94559

FromPaul <nospam@needed.invalid>
Date2019-07-14 08:03 -0400
Message-ID<qgf5n7$hl6$1@dont-email.me>
In reply to#94519
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

[toc] | [prev] | [next] | [standalone]


#94632

FromCameo <cameo@unreal.invalid>
Date2019-07-14 17:16 -0700
Message-ID<qgggla$2q4$1@dont-email.me>
In reply to#94559
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?

[toc] | [prev] | [next] | [standalone]


#94637

From"Mayayana" <mayayana@invalid.nospam>
Date2019-07-14 21:40 -0400
Message-ID<qggljc$rlk$1@dont-email.me>
In reply to#94632
"Cameo" <cameo@unreal.invalid> wrote

|
| Oh, c'mon Paul! You think everybody on this news group is a programming
| geek?

 It might not have been clear what was code there, but it's actually
very simple. Just paste the following into Notepad, save as a file
with extension .vbs, and run it:

'-- begin code --------------------------
 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
 

[toc] | [prev] | [next] | [standalone]


#94668

FromCameo <cameo@unreal.invalid>
Date2019-07-15 15:24 -0700
Message-ID<qgiueu$1qp$1@dont-email.me>
In reply to#94637
On 7/14/2019 6:40 PM, Mayayana wrote:
> "Cameo" <cameo@unreal.invalid> wrote
> 
> |
> | Oh, c'mon Paul! You think everybody on this news group is a programming
> | geek?
> 
>   It might not have been clear what was code there, but it's actually
> very simple. Just paste the following into Notepad, save as a file
> with extension .vbs, and run it:
> 
> '-- begin code --------------------------
>   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

Now you're talking, guys. Even a cave man could understand it after 
this. However, in the meantime I found a program that extracted the 
product key and after I tried to register it in the virtual Win7, it was 
rejected with the following error msg:
---------------------
The product key you have entered will not work with this edition of 
Windows 7.

You must either run Windows 7 Setup or enter a Windows 7 Home Premium 
product key.
---------------------

My problem is that I only have the Home Premium Upgrade CDs, not the 
original Home Premium. I also don't quite understand what is meant by 
Windows 7 Setup. Would that be on a Windows 7 Bootable Repair Disc that 
I made at one time? It's a 64-bit version though and the virtual Win7 is 
32-bit.


[toc] | [prev] | [next] | [standalone]


#94670

FromPaul <nospam@needed.invalid>
Date2019-07-15 19:00 -0400
Message-ID<qgj0hr$c1t$1@dont-email.me>
In reply to#94668
Cameo wrote:

> Now you're talking, guys. Even a cave man could understand it after 
> this. However, in the meantime I found a program that extracted the 
> product key and after I tried to register it in the virtual Win7, it was 
> rejected with the following error msg:
> ---------------------
> The product key you have entered will not work with this edition of 
> Windows 7.
> 
> You must either run Windows 7 Setup or enter a Windows 7 Home Premium 
> product key.
> ---------------------
> 
> My problem is that I only have the Home Premium Upgrade CDs, not the 
> original Home Premium. I also don't quite understand what is meant by 
> Windows 7 Setup. Would that be on a Windows 7 Bootable Repair Disc that 
> I made at one time? It's a 64-bit version though and the virtual Win7 is 
> 32-bit.

Generate download URLS with Heidoc URL generator, then
download using a regular browser. Heidoc works best
with a Win7 or more modern OS, with a high version
of .NET. It needs this for some trickery it performs
at TechBench with Internet Explorer.

https://www.heidoc.net/joomla/technology-science/microsoft/67-microsoft-windows-iso-download-tool

Once you have a file downloaded, if the DVD doesn't have the
version you want, you can cause the DVD to "expose" all the
versions inside. The file to be removed is "ei.cfg".

*******

Find the "install.wim" or "install.esd" inside the "sources"
folder of the Win7 ISO.

Use 7ZIP to open the WIM file, and there should be an XML file.
The listing inside the XML (text) file tells you which SKUs
of Windows 7 are actually on the disc.

I will take my (nominal) Pro DVD as an example.

It has four folders showing in the WIM. The XML
file tells me these are HomeBasic, HomePremium, Professional, Ultimate.
The DVD contains only x64 OSes.

This picture shows how to use 7ZIP with the Windows.iso
you download, to figure out how many versions of Windows
are on the DVD, then expose them.

https://i.postimg.cc/XNDmXJxS/remove-ei-cfg.gif

(The MSDN version of Windows 7 disc already has ei.cfg
removed and all versions on the DVD are available for install.)

You will need something to remaster an ISO. As you need
to write out a fresh ISO file, once ei.cfg is deleted.

But this is *only* necessary, if for some reason the
Heidoc DVD happens not to open to the correct version.
If you download the right one using Heidoc URL generator,
then you'll likely just be able to use it as is. Using
7ZIP and friends, is if you're a fanatic.

    Paul

[toc] | [prev] | [next] | [standalone]


#94715

FromCameo <cameo@unreal.invalid>
Date2019-07-16 13:06 -0700
Message-ID<qglanc$j6g$1@dont-email.me>
In reply to#94670
On 7/15/2019 4:00 PM, Paul wrote:
> Cameo wrote:
> 
>> Now you're talking, guys. Even a cave man could understand it after 
>> this. However, in the meantime I found a program that extracted the 
>> product key and after I tried to register it in the virtual Win7, it 
>> was rejected with the following error msg:
>> ---------------------
>> The product key you have entered will not work with this edition of 
>> Windows 7.
>>
>> You must either run Windows 7 Setup or enter a Windows 7 Home Premium 
>> product key.
>> ---------------------
>>
>> My problem is that I only have the Home Premium Upgrade CDs, not the 
>> original Home Premium. I also don't quite understand what is meant by 
>> Windows 7 Setup. Would that be on a Windows 7 Bootable Repair Disc 
>> that I made at one time? It's a 64-bit version though and the virtual 
>> Win7 is 32-bit.
> 
> Generate download URLS with Heidoc URL generator, then
> download using a regular browser. Heidoc works best
> with a Win7 or more modern OS, with a high version
> of .NET. It needs this for some trickery it performs
> at TechBench with Internet Explorer.
> 
> https://www.heidoc.net/joomla/technology-science/microsoft/67-microsoft-windows-iso-download-tool 
> 
> 
> Once you have a file downloaded, if the DVD doesn't have the
> version you want, you can cause the DVD to "expose" all the
> versions inside. The file to be removed is "ei.cfg".
> 
> *******
> 
> Find the "install.wim" or "install.esd" inside the "sources"
> folder of the Win7 ISO.
> 
> Use 7ZIP to open the WIM file, and there should be an XML file.
> The listing inside the XML (text) file tells you which SKUs
> of Windows 7 are actually on the disc.
> 
> I will take my (nominal) Pro DVD as an example.
> 
> It has four folders showing in the WIM. The XML
> file tells me these are HomeBasic, HomePremium, Professional, Ultimate.
> The DVD contains only x64 OSes.
> 
> This picture shows how to use 7ZIP with the Windows.iso
> you download, to figure out how many versions of Windows
> are on the DVD, then expose them.
> 
> https://i.postimg.cc/XNDmXJxS/remove-ei-cfg.gif
> 
> (The MSDN version of Windows 7 disc already has ei.cfg
> removed and all versions on the DVD are available for install.)
> 
> You will need something to remaster an ISO. As you need
> to write out a fresh ISO file, once ei.cfg is deleted.
> 
> But this is *only* necessary, if for some reason the
> Heidoc DVD happens not to open to the correct version.
> If you download the right one using Heidoc URL generator,
> then you'll likely just be able to use it as is. Using
> 7ZIP and friends, is if you're a fanatic.
> 
>     Paul

There you go with that geeky stuff again, Paul. Since I never heard of 
Heidoc before, this whole thing sounds Greek to me as well. But thanks 
for trying.

[toc] | [prev] | [next] | [standalone]


#94719

FromPaul <nospam@needed.invalid>
Date2019-07-16 17:16 -0400
Message-ID<qglequ$c98$1@dont-email.me>
In reply to#94715
Cameo wrote:
> On 7/15/2019 4:00 PM, Paul wrote:
>> Cameo wrote:
>>
>>> Now you're talking, guys. Even a cave man could understand it after 
>>> this. However, in the meantime I found a program that extracted the 
>>> product key and after I tried to register it in the virtual Win7, it 
>>> was rejected with the following error msg:
>>> ---------------------
>>> The product key you have entered will not work with this edition of 
>>> Windows 7.
>>>
>>> You must either run Windows 7 Setup or enter a Windows 7 Home Premium 
>>> product key.
>>> ---------------------
>>>
>>> My problem is that I only have the Home Premium Upgrade CDs, not the 
>>> original Home Premium. I also don't quite understand what is meant by 
>>> Windows 7 Setup. Would that be on a Windows 7 Bootable Repair Disc 
>>> that I made at one time? It's a 64-bit version though and the virtual 
>>> Win7 is 32-bit.
>>
>> Generate download URLS with Heidoc URL generator, then
>> download using a regular browser. Heidoc works best
>> with a Win7 or more modern OS, with a high version
>> of .NET. It needs this for some trickery it performs
>> at TechBench with Internet Explorer.
>>
>> https://www.heidoc.net/joomla/technology-science/microsoft/67-microsoft-windows-iso-download-tool 
>>
>>
>> Once you have a file downloaded, if the DVD doesn't have the
>> version you want, you can cause the DVD to "expose" all the
>> versions inside. The file to be removed is "ei.cfg".
>>
>> *******
>>
>> Find the "install.wim" or "install.esd" inside the "sources"
>> folder of the Win7 ISO.
>>
>> Use 7ZIP to open the WIM file, and there should be an XML file.
>> The listing inside the XML (text) file tells you which SKUs
>> of Windows 7 are actually on the disc.
>>
>> I will take my (nominal) Pro DVD as an example.
>>
>> It has four folders showing in the WIM. The XML
>> file tells me these are HomeBasic, HomePremium, Professional, Ultimate.
>> The DVD contains only x64 OSes.
>>
>> This picture shows how to use 7ZIP with the Windows.iso
>> you download, to figure out how many versions of Windows
>> are on the DVD, then expose them.
>>
>> https://i.postimg.cc/XNDmXJxS/remove-ei-cfg.gif
>>
>> (The MSDN version of Windows 7 disc already has ei.cfg
>> removed and all versions on the DVD are available for install.)
>>
>> You will need something to remaster an ISO. As you need
>> to write out a fresh ISO file, once ei.cfg is deleted.
>>
>> But this is *only* necessary, if for some reason the
>> Heidoc DVD happens not to open to the correct version.
>> If you download the right one using Heidoc URL generator,
>> then you'll likely just be able to use it as is. Using
>> 7ZIP and friends, is if you're a fanatic.
>>
>>     Paul
> 
> There you go with that geeky stuff again, Paul. Since I never heard of 
> Heidoc before, this whole thing sounds Greek to me as well. But thanks 
> for trying.
> 

Heidoc is easy to use, and even if you ignore all help
with it, it's still going to get you a DVD. The
part you provide, is selecting the right version
of DVD. Heidoc is not a mind reader, and can't do that
part for you.

Don't waste the Win7 download opportunities when using
that tool. The developer has to work hard to make the
Win7 download method work... It used to be slam-dunk easy
to abuse TechBench at one time, but not any more.

I mentioned the geeky stuff, because of the way
the Win7 DVD works. The DVD may harbor multiple
versions, but if the DVD will not present a menu,
you can't access them. The "ei.cfg" breadcrumb is
meant to help you identify an "ei.cfg removal tool",
for doing that sort of conversion of the ISO. The
other poster helpfully points out that a utility
is available to do the work for you. You could
apply it to the Heidoc ISO when you get it.

I think I've removed the ei.cfg from one DVD
by hand, rather than use a utility to do it.

    Paul

[toc] | [prev] | [next] | [standalone]


#94717

FromNotMe <NotMe@example.invalid>
Date2019-07-16 15:49 -0500
Message-ID<qgld7e$2m9$1@dont-email.me>
In reply to#94670
On 7/15/2019 6:00 PM, Paul wrote:
> Cameo wrote:
> 
>> Now you're talking, guys. Even a cave man could understand it after 
>> this. However, in the meantime I found a program that extracted the 
>> product key and after I tried to register it in the virtual Win7, it 
>> was rejected with the following error msg:
>> ---------------------
>> The product key you have entered will not work with this edition of 
>> Windows 7.
>>
>> You must either run Windows 7 Setup or enter a Windows 7 Home Premium 
>> product key.
>> ---------------------
>>
>> My problem is that I only have the Home Premium Upgrade CDs, not the 
>> original Home Premium. I also don't quite understand what is meant by 
>> Windows 7 Setup. Would that be on a Windows 7 Bootable Repair Disc 
>> that I made at one time? It's a 64-bit version though and the virtual 
>> Win7 is 32-bit.
> 
> Generate download URLS with Heidoc URL generator, then
> download using a regular browser. Heidoc works best
> with a Win7 or more modern OS, with a high version
> of .NET. It needs this for some trickery it performs
> at TechBench with Internet Explorer.
> 
> https://www.heidoc.net/joomla/technology-science/microsoft/67-microsoft-windows-iso-download-tool 
> 
> 
> Once you have a file downloaded, if the DVD doesn't have the
> version you want, you can cause the DVD to "expose" all the
> versions inside. The file to be removed is "ei.cfg".
> 
> *******
> 
> Find the "install.wim" or "install.esd" inside the "sources"
> folder of the Win7 ISO.
> 
> Use 7ZIP to open the WIM file, and there should be an XML file.
> The listing inside the XML (text) file tells you which SKUs
> of Windows 7 are actually on the disc.
> 
> I will take my (nominal) Pro DVD as an example.
> 
> It has four folders showing in the WIM. The XML
> file tells me these are HomeBasic, HomePremium, Professional, Ultimate.
> The DVD contains only x64 OSes.
> 
> This picture shows how to use 7ZIP with the Windows.iso
> you download, to figure out how many versions of Windows
> are on the DVD, then expose them.
> 
> https://i.postimg.cc/XNDmXJxS/remove-ei-cfg.gif
> 
> (The MSDN version of Windows 7 disc already has ei.cfg
> removed and all versions on the DVD are available for install.)
> 
> You will need something to remaster an ISO. As you need
> to write out a fresh ISO file, once ei.cfg is deleted.
> 
> But this is *only* necessary, if for some reason the
> Heidoc DVD happens not to open to the correct version.
> If you download the right one using Heidoc URL generator,
> then you'll likely just be able to use it as is. Using
> 7ZIP and friends, is if you're a fanatic.
> 
>     Paul

i used the utlility below (I only copied the readme.text)to expose all 
versions without without needing to create a new iso. I always thought 
it was only Ultimate that had all the versions?



[toc] | [prev] | [next] | [standalone]


#94751

FromNotMe <NotMe@example.com>
Date2019-07-17 11:36 -0500
Message-ID<qgniq6$1r4c$1@gioia.aioe.org>
In reply to#94717
On 7/16/2019 3:49 PM, NotMe wrote:
> On 7/15/2019 6:00 PM, Paul wrote:
>> Cameo wrote:
>>
>>> Now you're talking, guys. Even a cave man could understand it after 
>>> this. However, in the meantime I found a program that extracted the 
>>> product key and after I tried to register it in the virtual Win7, it 
>>> was rejected with the following error msg:
>>> ---------------------
>>> The product key you have entered will not work with this edition of 
>>> Windows 7.
>>>
>>> You must either run Windows 7 Setup or enter a Windows 7 Home Premium 
>>> product key.
>>> ---------------------
>>>
>>> My problem is that I only have the Home Premium Upgrade CDs, not the 
>>> original Home Premium. I also don't quite understand what is meant by 
>>> Windows 7 Setup. Would that be on a Windows 7 Bootable Repair Disc 
>>> that I made at one time? It's a 64-bit version though and the virtual 
>>> Win7 is 32-bit.
>>
>> Generate download URLS with Heidoc URL generator, then
>> download using a regular browser. Heidoc works best
>> with a Win7 or more modern OS, with a high version
>> of .NET. It needs this for some trickery it performs
>> at TechBench with Internet Explorer.
>>
>> https://www.heidoc.net/joomla/technology-science/microsoft/67-microsoft-windows-iso-download-tool 
>>
>>
>> Once you have a file downloaded, if the DVD doesn't have the
>> version you want, you can cause the DVD to "expose" all the
>> versions inside. The file to be removed is "ei.cfg".
>>
>> *******
>>
>> Find the "install.wim" or "install.esd" inside the "sources"
>> folder of the Win7 ISO.
>>
>> Use 7ZIP to open the WIM file, and there should be an XML file.
>> The listing inside the XML (text) file tells you which SKUs
>> of Windows 7 are actually on the disc.
>>
>> I will take my (nominal) Pro DVD as an example.
>>
>> It has four folders showing in the WIM. The XML
>> file tells me these are HomeBasic, HomePremium, Professional, Ultimate.
>> The DVD contains only x64 OSes.
>>
>> This picture shows how to use 7ZIP with the Windows.iso
>> you download, to figure out how many versions of Windows
>> are on the DVD, then expose them.
>>
>> https://i.postimg.cc/XNDmXJxS/remove-ei-cfg.gif
>>
>> (The MSDN version of Windows 7 disc already has ei.cfg
>> removed and all versions on the DVD are available for install.)
>>
>> You will need something to remaster an ISO. As you need
>> to write out a fresh ISO file, once ei.cfg is deleted.
>>
>> But this is *only* necessary, if for some reason the
>> Heidoc DVD happens not to open to the correct version.
>> If you download the right one using Heidoc URL generator,
>> then you'll likely just be able to use it as is. Using
>> 7ZIP and friends, is if you're a fanatic.
>>
>>     Paul
> 
> i used the utlility below (I only copied the readme.text)to expose all 
> versions without without needing to create a new iso. I always thought 
> it was only Ultimate that had all the versions?
> 
> 
> 
> 
Forgot the readme text.

ei.cfg Removal Utility
Version 1.2.1
<http://code.kliu.org/misc/winisoutils/>

When used on an original Windows 7/8 ISO image, this utility will 
disable the
ei.cfg file, thus converting a disc image into a "universal" disc image.

When used on a Windows 7/8 ISO image that has already been patched by this
utility, this utility will undo the ei.cfg removal and restore the disc 
image
to its original state.


Troubleshooting
===============

The inability to open the disc image with write access is, by far, the most
common error.  Make sure that the disc image is not read-only, that you have
write privileges for the disc image, and that the disc image is not open 
in or
currently in use by another application.


Technical Details
=================

This works by toggling the deletion bit in the UDF file table, which 
instructs
the operating system to ignore the file and to treat it as if it does 
not exist.
By not physically removing the file, this eliminates the need to rebuild the
ISO, and makes this sort of fast, unintrustive patching possible.  This also
makes it possible to reverse the patch and to restore the image to its 
original
state, if so desired.


Changelog
=========

2012/08/06 - 1.2.1
	The search for ei.cfg is now case-insensitive.

2011/01/25 - 1.2
	Made the error messages more helpful.

2009/08/10 - 1.1
	Changed the patching methodology to use the UDF deletion bit instead of
	renaming the file.

2009/08/10 - 1.0
	Initial version.


Version Compatibility Note
==========================

ei.cfg Removal Utility versions 1.1 and later use a slightly different 
patching
method than version 1.0, and as a result, the newer versions cannot 
reverse the
patches performed by version 1.0, and vice-versa; to reverse a patch 
that was
performed by version 1.0, you must use version 1.0.

Since version 1.0 existed for only 8 hours before being replaced by 
version 1.1,
this should not be a problem for most users.

[toc] | [prev] | [next] | [standalone]


#94639

FromPaul <nospam@needed.invalid>
Date2019-07-14 22:22 -0400
Message-ID<qggo23$8rc$1@dont-email.me>
In reply to#94632
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

[toc] | [prev] | [next] | [standalone]


#94653

From"Mayayana" <mayayana@invalid.nospam>
Date2019-07-15 08:42 -0400
Message-ID<qghsck$j5t$1@dont-email.me>
In reply to#94639
"Paul" <nospam@needed.invalid> wrote

| 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.
|
     You do realize none of that is necessary?
The script alone finds the value in the Registry and
extracts the key. No one needs a Registry program.
It's just confusing the issue.

   Weird stuff, though. I don't see why Microsoft feel
they need to hide the key. It's printed on the sticker
that's on all OEM computers. People need it to reinstall.
Yet Microsoft have gone from storing it in plain text
directly in the Registry to encoding it and storing it
with the Product ID, which is really just a SKU code. 

[toc] | [prev] | [next] | [standalone]


#94659

FromPaul <nospam@needed.invalid>
Date2019-07-15 12:13 -0400
Message-ID<qgi8o6$pft$1@dont-email.me>
In reply to#94653
Mayayana wrote:
> "Paul" <nospam@needed.invalid> wrote
> 
> | 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.
> |
>      You do realize none of that is necessary?
> The script alone finds the value in the Registry and
> extracts the key. No one needs a Registry program.
> It's just confusing the issue.
> 
>    Weird stuff, though. I don't see why Microsoft feel
> they need to hide the key. It's printed on the sticker
> that's on all OEM computers. People need it to reinstall.
> Yet Microsoft have gone from storing it in plain text
> directly in the Registry to encoding it and storing it
> with the Product ID, which is really just a SKU code. 

The first .vbs extracts the key from your running OS.

I added a few lines to the second .vbs, so you could
open an offline registry (with Kaspersky), and then
transfer over that key information in the hex string
into the script. I didn't put I/O in the script, and
just provided a place where you could
modify the script and get the answer.

It was the quickest way to modify the script, so it
could be used to convert an offline 15 byte encoded key.

I don't know if there are any key retrieval programs
that scan all disks and partitions on a computer. Usually
the assumption is C: is running, and direct registry
access is all that is needed for the user. Nobody worries
about extraction of materials from "dead" computers.

    Paul

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | alt.comp.os.windows-10


csiph-web