Windows 10 not booting - HP laptop stuck in automatic repair mode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xrobwx71
    PCHF Moderator
    • Mar 2023
    • 1067

    #16


    or
    1. Open a new Notepad window
    2. Copy and paste the following text into the window




    Set WshShell = CreateObject(“WScript.Shell”)
    MsgBox ConvertToKey(WshShell.RegRead(“HKLM\SOFTWARE\Micro soft\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


    1. Click File > Save As (all files not .txt) and save the file to your desktop as productkey.vbs It’s important to include the .vbs extension because this is a Windows Scripting Host file.
    2. Close Notepad and double-click the file. Wait a few seconds, and then you will be presented with a popup displaying your product key:

    I tested and it works.

    Source

    Comment

    • Bruce
      PCHF Moderator
      • Oct 2017
      • 10702

      #17
      To get your Windows Product Key, you can use Rob’s way above, and there are programs that claim to get it, but in reality, you shouldn’t need to.
      If you already had Windows on that laptop then Microsoft already knows about you.
      Just reload it and when it goes to be activated, it’ll find you again.

      Comment

      • veeg
        PCHF Director
        • Jul 2016
        • 8982

        #18
        Closing no response !

        Comment

        Working...