How to recover Windows key 10 from BIOS / UEFA

Contents

recover-license-windows-10-bios-4341272

Today we will show you how to get Windows key 10, 8 O 7 using CMD, scripts and some free programs. You can even get this license back after formatting your PC or after changing a damaged hard drive.

Have you reinstalled Windows and can't find the activation key?

When you buy a new PC, usually includes a pre-installed copy of Windows along with a Llave OEM (linked to a single motherboard).

However, with the arrival of Windows 8, Microsoft no longer includes the license on a label affixed to computers (laptops o PC). Instead of, stores this OEM series inside BIOS / Computer UEFI.

Fortunately, there are several ways to retrieve this product key, as we will see next.

How to recover Windows license from BIOS or UEFI

If you have formatted your computer, reinstalled Windows or changed your hard drive, you can still retrieve the OEM product key, as long as your PC had the operating system pre-installed when you bought it. Otherwise, you will have to buy a cheap Windows license 10.

This is how you can get the OEM key for your ASUS PC, HP, Acer, Huawei, Lenovo, Dell, etc.

With programs

This is the easiest and simplest way, ideal if you don't want to complicate with the commands.

  1. Download one of the following programs to recover the Windows key:

2. Install the software on your PC

3. Run the program and it will show you the Windows license.

programs-get-license-windows-5432351

Through CMD

If you don't want to install anything on your PC, this is the recommended method. It won't take you a minute to do it.

  1. Run the CMD console or command prompt as administrator.
  2. Enter the following command and hit Enter:
wmic path softwarelicensingservice get OA3xOriginalProductKey
product-key-cmd-3700823

Note that this command will only show the product key if you have a copy of genuine Windows.

Con PowerShell

Similar to the previous method. It works to show you Windows 10, 8.1 Y 7 serial from BIOS or UEFI.

  1. Open PowerShell as Administrator.
  2. Run the following command:
powershell “(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey”
powershell-product-key-7638403

Using a script

In case the above methods don't help you, you can use this visual basic script to extract windows key from registry (not stored in BIOS / UEFA).

  1. Open the notepad
  2. Copy and paste the following script:
Option Explicit
Dim objshell,path,DigitalID, Result
Set objshell = CreateObject("WScript.Shell")
'Set registry key path
Path = "HKLMSOFTWAREMicrosoftWindows NTCurrentVersion"
'Registry key value
DigitalID = objshell.RegRead(Path & "DigitalProductId")
Dim ProductName,ProductID,ProductKey,ProductData
'Get ProductName, ProductID, ProductKey
ProductName = "Product Name: " & objshell.RegRead(Path & "ProductName")
ProductID = "Product ID: " & objshell.RegRead(Path & "ProductID")
ProductKey = "Installed Key: " & ConvertToKey(DigitalID)
ProductData = ProductName & vbNewLine & ProductID & vbNewLine & ProductKey
'Show messbox if save to a file
If vbYes = MsgBox(ProductData & vblf & vblf & "Save to a file?", vbYesNo + vbQuestion, "BackUp Windows Key Information") then
Save ProductData
End If
'Convert binary to chars
Function ConvertToKey(Key)
Const KeyOffset = 52
Dim isWin8, Maps, i, j, Current, 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
Maps = "BCDFGHJKMPQRTVWXY2346789"
Do
Current= 0
j = 14
Do
Current = Current* 256
Current = Key(j + KeyOffset) + Current
Key(j + KeyOffset) = (Current  24)
Current=Current Mod 24
j = j -1
Loop While j >= 0
i = i -1
KeyOutput = Mid(Maps,Current+ 1, 1) & KeyOutput
Last = Current
Loop While i >= 0

If (isWin8 = 1) Then
keypart1 = Mid(KeyOutput, 2, Last)
insert = "N"
KeyOutput = Replace(KeyOutput, keypart1, keypart1 & insert, 2, 1, 0)
If Last = 0 Then KeyOutput = insert & KeyOutput
End If
ConvertToKey = Mid(KeyOutput, 1, 5) & "-" & Mid(KeyOutput, 6, 5) & "-" & Mid(KeyOutput, 11, 5) & "-" & Mid(KeyOutput, 16, 5) & "-" & Mid(KeyOutput, 21, 5)
End Function
'Save data to a file
Function Save(Data)
Dim fso, fName, txt,objshell,UserName
Set objshell = CreateObject("wscript.shell")
'Get current user name
UserName = objshell.ExpandEnvironmentStrings("%UserName%")
'Create a text file on desktop
fName = "C:Users" & UserName & "DesktopWindowsKeyInfo.txt"
Set fso = CreateObject("Scripting.FileSystemObject")
Set txt = fso.CreateTextFile(fName)
txt.Writeline Data
txt.Close
End Function

3. Now save the file with the .VBS extension (for example: key.vbs).

4. Double click the file to run it and it will show you the serial number.

Once the license is obtained, you can use it to activate your copy of Windows.

product-key-windows-10-5908735

Remember it the OEM key is only used to activate your own equipment, since it is associated with a single motherboard. You will not be able to use it to activate other computers.

Also note that if you joined Windows Insider or upgraded to Windows 10 for free, what he got was a digital license, not a password from 25 characters. Therefore, the program will only show you the generic key of the Windows edition 10 what's wrong with it, not the OEM key.

Subscribe to our Newsletter

We will not send you SPAM mail. We hate it as much as you.