-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Desktops
- Desktop Operating Systems and Recovery
- How to obtain the original windows 10 product key which came...

Create an account on the HP Community to personalize your profile and ask a question
12-30-2019 12:54 AM
I had upgraded to Windows 10 educational version about a year ago. The product key was provided by the university, which I assume would expire soon that I have graduated recently. I had not saved my original product key while upgrading. Now I want to move back to the original home version which came installed in the device. Could someone please guide how I could obtain my original windows 10 product key? I could not find it anywhere on the HP packaging of the laptop
12-30-2019 01:46 AM - edited 12-30-2019 08:57 AM
The original HP key is stored in the BIOS unless you cleared the HP keys setting. The only way to get that key would be to remove the Windows 10 Educational installation hard disk and install another one and do a clean install of Windows 10 via an HP Cloud Recovery USB flash drive.
The Windows 10 Educational version license key will not expire. Your university just does not have that kind of control over your life. 🙂
The following Virtual Basic script will give you the installed key if run while logged into Windows. It is safe to use and run. Copy and save it in notepad and save as ProductKey.vbs. Double-click it to run the script.
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
edited for a typographic error by Erico
I am a volunteer forum member. If my suggestion helped you solve your issue, help others by marking that post as the accepted solution. Say thanks by clicking on the Yes button next to the "was this reply helpful?"