Copied system partitions to USB disk, how to proceed to make a clone?

Bo Berglund bo.berglund at gmail.com
Mon Oct 18 17:50:37 UTC 2021


On Mon, 18 Oct 2021 11:24:02 +0200, Liam Proven <lproven at gmail.com> wrote:

>Produkey is safe but if you do not use an ad block, be careful of
>deceptive advertisements/.
>
>https://www.nirsoft.net/utils/product_cd_key_viewer.html

I used wget on the two zip urls (one seems to be for x64) and unzipped them ito
two directories.
I have a shared directory to which I could connect from Windows 10, so I tried
to get the x64 version of the file copied to Win10 via that share, but Windows
antivirus removed the file on the share!!

Next I tried the other (non-x64) produkey and it was not removed but I cannot
run it on Windows either....
So how can I read the Windows10 product key?

I have a VBS application getprodkey.vbs (from 2019) on my drive and when I run
it I get a result, but I am not at all sure it is the correct one...

Here is the VBS code (pretty simple, maybe too simple):

Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\DigitalProductId"))

Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i -1
KeyOutput = "-" & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function


As you can see it reads a binary data item "DigitalProductId" from the registry
and converts the binary to the 25 char format.

Do you have a Win10 system you know the key for so you can check if this reads
the correct key?
My two Windows PC:s are using a product key unknown by me...
Not printed on a label as they used to be.


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list