How-ToWindows 10/11

How To Find Your Windows 10 Product Key Using CMD Prompt

Getting your Trinity Audio player ready...

If you need to locate your Windows 10 product key, you can do so by using a simple command in the Command Prompt.

Find Your Windows 10 Product Key Using the Command Prompt

To find your Windows 10 product key using the Command Prompt, you will have to follow the steps below;

  1. Open the command line application with administrative privileges. To do this, type “cmd” or “Command Prompt” in the Windows search bar. The command prompt will appear in the search results. Select “Run As Administrator” from the window that appears. If prompted, enter your Windows account password.
  2. Once open, copy and paste the following command and then hit the Enter key:
    • wmic path softwarelicensingservice get OA3xOriginalProductKey

The 25-digit product key will then appear.

READ ALSO  How To Format A Drive Using Command Prompt

This method displays the Windows product key stored in your computer’s BIOS or UEFI firmware. In other words, it shows the original Windows key your computer came with. Properly, it is called an “OEM Key.” If you’ve installed Windows with a different key since then (or acquired a digital license), it will be different from the current key in use on your PC. You’ll have to use the next method if you want to find that key.

READ ALSO  How To Fix Internal SSD Not Showing Up In Windows

Find Your Windows 10 Product Key Using a Windows Registry Method

The Windows Registry tip was initially posted by a user (whose account is no longer active) in the Microsoft forum.

  1. First, open Notepad by right-clicking anywhere on the desktop, hovering over “New”, and then selecting “Text Document” from the menu.
  2. Copy and paste this code into Notepad:
Set WshShell = CreateObject("WScript.Shell")MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))Function ConvertToKey(Key)Const KeyOffset = 52i = 28Chars = "BCDFGHJKMPQRTVWXY2346789"DoCur = 0x = 14DoCur = Cur * 256Cur = Key(x + KeyOffset) + CurKey(x + KeyOffset) = (Cur \ 24) And 255Cur = Cur Mod 24x = x -1Loop While x >= 0i = i -1KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutputIf (((29 - i) Mod 6) = 0) And (i <> -1) Theni = i -1KeyOutput = "-" & KeyOutputEnd IfLoop While i >= 0ConvertToKey = KeyOutputEnd Function
  1. Next, click the “File” tab and select “Save As”.
  2. In File Explorer, set the “Save As Type” dropdown to “All Files” and give your file a name. You can use any name, but it has to be a .vbs file. You can name it something like: productkey.vbs
  3. Once you’ve entered a file name, save the file.
  4. You can now view your product key at any time by opening the new file.

Ghana Tech Base

Ghana Tech Base is a Ghanaian tech blog that informs its readers on the most recent and popular Tech News, How-Tos, Tips and Tricks, and other relevant Tech Bits.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button