Showing results for 
Search instead for 
Did you mean: 
New member
1 0 0 0
Message 1 of 2
Flag Post

How to obtain the original windows 10 product key which came installed in the device?

HP Recommended
HP Spectre x360
Microsoft Windows 10 (64-bit)

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

Level 17
Level 17
47,969 42,208 4,647 12,420
Message 2 of 2
Flag Post
HP Recommended



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
Cur = 0
x = 14
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 not an HP Employee.
0 Kudos
Warning Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation