Windows 10: Script to recover Windows 10 Product Key

Discus and support Script to recover Windows 10 Product Key in Windows 10 Ask Insider to solve the problem; I recently needed to recover my windows 10 product key. I quickly found this vbs script, that produced something that looked like a product key, but... Discussion in 'Windows 10 Ask Insider' started by /u/kebakent, Jun 21, 2020.

  1. Script to recover Windows 10 Product Key


    I recently needed to recover my windows 10 product key. I quickly found this vbs script, that produced something that looked like a product key, but didn't work for me. A little more research revealed this script from u/Asmx86CCpp that I was unable to get working. I managed to combine them into the following script that worked for me. Hoping it will help someone out there.

    Save as Productkey.vbs and run.

    Set WshShell = CreateObject("WScript.Shell") MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) Function ConvertToKey(Key) Const KeyOffset = 52 Dim isWin8, Chars, i, x, Cur, KeyOutput, Last, keypart1, insert 'Check if OS is Windows 8 isWin8 = (Key(66) \ 6) And 1 Key(66) = (Key(66) And &HF7) Or ((isWin8 And 2) * 4) i = 24 Chars = "BCDFGHJKMPQRTVWXY2346789" Do Cur = 0 x = 14 Do Cur = Cur * 256 Cur = Key(x + KeyOffset) + Cur Key(x + KeyOffset) = (Cur \ 24) Cur = Cur Mod 24 x = x -1 Loop While x >= 0 i = i -1 KeyOutput = Mid(Chars,Cur+ 1, 1) & KeyOutput Last = Cur Loop While i >= 0 keypart1 = Mid(KeyOutput, 2, Last) insert = "N" KeyOutput = Replace(KeyOutput, keypart1, keypart1 & insert, 2, 1, 0) If Last = 0 Then KeyOutput = insert & KeyOutput ConvertToKey = Mid(KeyOutput, 1, 5) & "-" & Mid(KeyOutput, 6, 5) & "-" & Mid(KeyOutput, 11, 5) & "-" & Mid(KeyOutput, 16, 5) & "-" & Mid(KeyOutput, 21, 5) End Function
    submitted by /u/kebakent
    [link] [comments]

    :)
     
    /u/kebakent, Jun 21, 2020
    #1
  2. Smittychat., Jun 21, 2020
    #2
  3. AmishValambhia, Jun 21, 2020
    #3
  4. Script to recover Windows 10 Product Key

    windows 10 key

    Thanks but I don't want to do any decrypting. I want to download a Win 10 ISO from Microsoft and install it using my Win 8 key. No other steps required. Is that possible?
     
    Easy Rhino, Jun 21, 2020
    #4
Thema:

Script to recover Windows 10 Product Key

Loading...
  1. Script to recover Windows 10 Product Key - Similar Threads - Script recover Product

  2. recover windows product key

    in Windows 10 Software and Apps
    recover windows product key: forgot windows product key https://answers.microsoft.com/en-us/windows/forum/all/recover-windows-product-key/253d3124-19d7-4e5a-8c09-95a06625ebed
  3. Recover Windows product key

    in Windows 10 Software and Apps
    Recover Windows product key: Hi dears!In February 2022 I bought a new laptop - Lenovo Thinkpad X1 Extreme with Windows 10 Pro on board.After some problems with OS performance I reinstalled Windows 10 Pro and now I need my old product key to reactivate it.Can you help me?Thank you in advance!Device name...
  4. Recover Windows product key

    in Windows 10 Installation and Upgrade
    Recover Windows product key: Hi dears!In February 2022 I bought a new laptop - Lenovo Thinkpad X1 Extreme with Windows 10 Pro on board.After some problems with OS performance I reinstalled Windows 10 Pro and now I need my old product key to reactivate it.Can you help me?Thank you in advance!Device name...
  5. Recover Windows Product Key

    in Windows 10 Gaming
    Recover Windows Product Key: Hi guys,I bought a Gaming PC with Windows 10 installed on it. A few months ago I decided to install a Linux distribution and erase Windows 10 from scratch. If I wanted to uninstall a Linux distribution and install Windows 10 again, how could I recover the product key that was...
  6. Recover Windows Product Key

    in Windows 10 Software and Apps
    Recover Windows Product Key: Hi guys,I bought a Gaming PC with Windows 10 installed on it. A few months ago I decided to install a Linux distribution and erase Windows 10 from scratch. If I wanted to uninstall a Linux distribution and install Windows 10 again, how could I recover the product key that was...
  7. Recover Windows Product Key

    in Windows 10 Installation and Upgrade
    Recover Windows Product Key: Hi guys,I bought a Gaming PC with Windows 10 installed on it. A few months ago I decided to install a Linux distribution and erase Windows 10 from scratch. If I wanted to uninstall a Linux distribution and install Windows 10 again, how could I recover the product key that was...
  8. Recover Windows product key

    in Windows 10 Installation and Upgrade
    Recover Windows product key: I am trying to install Windows 8 to a different hard drive, because my drive C have been giving me a lot of blue screen of death while gaming. I am installing it to my D drive the setup process keep asking me to type in product key with no other option the product key on my...
  9. Recovering windows 10 product key?

    in Windows 10 Installation and Upgrade
    Recovering windows 10 product key?: A few months ago, my desktops' hard drive suffered a catastrophic failure. I am dumb, and I never made a recovery disc, and I cannot find the paperwork that came with my computer. I did, however, have my microsoft account linked to that computer, by which I mean I had to use...
  10. Recover Windows 10 Product Key

    in Windows 10 Updates and Activation
    Recover Windows 10 Product Key: Good morning. A few years ago I bought a new computer to my father with W7 Home Premium. A few months later, I upgraded it to W10 with the free upgrade that Microsoft offered; but I didn't copy the W10 Product Key. A few weeks ago the computer's hard drive crashed...