Thứ Ba, 22 tháng 5, 2018

How to find Windows Product Key

Use the Windows Registry to find the product key
To find your product key using 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 ("HKLM \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ DigitalProductId"))
Function ConvertToKey (Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
To
Cur = 0
x = 14
To
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 & gt; = 0
i = i -1
KeyOutput = Mid (Chars, Cur + 1, 1) & amp; KeyOutput
If ((29 - i) Mod 6) = 0) And (& lt; & gt; -1) Then
i = i -1
KeyOutput = "-" & amp; KeyOutput
End If
Loop While i & gt; = 0
ConvertToKey = KeyOutput
End Function
After you have saved the Notepad file, just click on that file and a popup window will appear showing your Product key. You can copy and save the Product key for use in case of need.
Find the product key using Command Prompt
First press Windows + X 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 (Admin) option 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
This will display your Product Key.

Không có nhận xét nào:

Đăng nhận xét