No need to install any software, this is how to find the Windows Product Key

Suppose you intend to reinstall Windows, but you do not know or do not remember the Product key to activate Windows after the installation is completed and you cannot activate the newly installed operating system.

Suppose you intend to reinstall Windows, but you do not know or do not remember the Product key to activate Windows after the installation is completed and you cannot activate the newly installed operating system.

Here are 3 easy ways to help you find your Product key.

1. Use Powershell to find your Product key

1. Open Notepad on your computer.

2. Copy and paste the text below into Notepad file:

function Get-WindowsKey {

## function để lấy từ khóa Product Windows từ bất kỳ PC

## by Jakob Bindslet (jakob@bindslet.dk)

param ($ targets = ".")

$ hklm = 2147483650

$ regPath = "SoftwareMicrosoftWindows NTCurrentVersion"

$ regValue = "DigitalProductId"

Foreach ($ target in $ targets) {

$ productKey = $ null

$ win32os = $ null

$ wmi = [WMIClass] "$ targetrootdefault: stdRegProv"

$ data = $ wmi.GetBinaryValue ($ hklm, $ regPath, $ regValue)

$ binArray = ($ data.uValue) [52.66]

$ charsArray = "B", "C", "D", "F", "G", "H", "J", "K", "M", "P", "Q", "R" , "T", "V", "W", "X", "Y", "2", "3", "4", "6", "7", "8", "9"

## decrypt base24 encoded binary data

For ($ i = 24; $ i -ge 0; $ i--) {

$ k = 0

For ($ j = 14; $ j -ge 0; $ j--) {

$ k = $ k * 256 -bxor $ binArray [$ j]

$ binArray [$ j] = [math] :: truncate ($ k / 24)

$ k = $ k% 24

}

$ productKey = $ charsArray [$ k] + $ productKey

If (($ i% 5 -eq 0) -and ($ i -ne 0)) {

$ productKey = "-" + $ productKey

}

}

$ win32os = Get-WmiObject Win32_OperatingSystem -computer $ target

$ obj = New-Object Object

$ obj | Add-Member Noteproperty Computer -value $ target

$ obj | Add-Member Noteproperty Caption -value $ win32os.Caption

$ obj | Add-Member Noteproperty CSDVersion -value $ win32os.CSDVersion

$ obj | Add-Member Noteproperty OSArch -value $ win32os.OSArchitecture

$ obj | Add-Member Noteproperty BuildNumber -value $ win32os.BuildNumber

$ obj | Add-Member Noteproperty RegisteredTo -value $ win32os.RegisteredUser

$ obj | Add-Member Noteproperty ProductID -value $ win32os.SerialNumber

$ obj | Add-Member Noteproperty ProductKey -value $ productkey

$ obj

}

}

3. Save the Notepad file into an unreasonable name with the ".ps1" extension on your Desktop to make it easy to find.

For example, you can name it GetProductKey.ps1.

No need to install any software, this is how to find the Windows Product Key Picture 1No need to install any software, this is how to find the Windows Product Key Picture 1

4. Open Powershell under Admin by entering "powershell" in the Search Menu on the Start Menu or Start Screen and then pressing Ctrl + Shift + Enter to open Powershell under Admin.

5. Activate executing Local files without digitally signed by entering the following command into the Powershell window:

Set-ExecutionPolicy RemoteSigned

Press Enter to execute the command.

No need to install any software, this is how to find the Windows Product Key Picture 2No need to install any software, this is how to find the Windows Product Key Picture 2

6. Next, enter the following command:

Import-Module C: UsersWinaeroDesktopGetProductKey.ps1; Get-WindowsKey

Note:

In the above command, change the path to the file GetProductKey.ps1 that you saved.

7. Your product key will now be displayed on the screen.

No need to install any software, this is how to find the Windows Product Key Picture 3No need to install any software, this is how to find the Windows Product Key Picture 3

In addition, you can refer to the steps for performing Product key search with Powershell in the video below:

2. Find Product key using Command Prompt

First you press Windows + X key combination to open the Power User Menu or right-click the Start button in the bottom left corner of Windows 10/8, then select the Command Prompt option (Admin) to open the Command Prompt under Admin .

Next enter the following command into the Command Prompt window and press Enter :

wmic path softwarelicensingservice get OA3xOriginalProductKey

Now the screen will display your Product key.

No need to install any software, this is how to find the Windows Product Key Picture 4No need to install any software, this is how to find the Windows Product Key Picture 4

3. Use the Windows Registry to find the Product key

To find your Product key with the Windows Registry, first open Notepad on your computer.

Next, copy and paste the following script into Notepad and save this Notepad file as productkey.vbs:

Set WshShell = CreateObject ("WScript.Shell")
MsgBox ConvertToKey (WshShell.RegRead ("HKLMSOFTWAREMicrosoftWindows NTCurrentVersionDigitalProductId"))

ConvertToKey (Key) Function
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

After you have completed the Notepad file saving process, simply click on the file and a popup window will appear showing your Product key. You can copy and save the Product key for use in case of necessity.

No need to install any software, this is how to find the Windows Product Key Picture 5No need to install any software, this is how to find the Windows Product Key Picture 5

Refer to some of the following articles:

  1. How to check and detect RAM and hardware problems on your Windows computer?
  1. How to share a folder (folder) via LAN on Windows 10
  1. Here's how to uninstall Windows 10 to return to using Windows 7 or 8.1

Good luck!

4.7 ★ | 3 Vote