How to Find Your Windows 10 Product Key Using the Command Prompt (2024)

Quick Links

  • Find Your Windows 10 Product Key Using the Command Prompt

  • Find Your Windows 10 Product Key Using Software

  • Find Your Windows 10 Product Key Using a Windows Registry Method

Key Takeaways

  • Quickly find your Windows 10 product key by opening Command Prompt with administrative privileges and enter: "wmic path softwarelicensingservice get OA3xOriginalProductKey".
  • If the command-line method doesn't work for you, use software like NirSoft's ProduKey or ShowKeyPlus to find your product key.
  • Avoid using the Windows Registry method to find your product key, as it may not return a usable key on the latest version of Windows 10.

If you're looking for your Windows 10 product key, you can find it by entering a quick command in the Command Prompt. Here's how — plus a neat little trick for finding the product key using a Windows Registry method.

Find Your Windows 10 Product Key Using the Command Prompt

To find your Windows 10 product key using the Command Prompt, you'll need to open the command line application with administrative privileges. To do this, type "cmd" or "Command Prompt" in the Windows search bar. Command Prompt will appear in the search results. Select "Run As Administrator" from the window that appears. If prompted, enter your Windows account password.

How to Find Your Windows 10 Product Key Using the Command Prompt (1)

This will also work with PowerShell.

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.

How to Find Your Windows 10 Product Key Using the Command Prompt (2)

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.

Find Your Windows 10 Product Key Using Software

The command-line method above isn't for everyone, and it doesn't work if you're using a product key you purchased rather than one that came with your PC. There are plenty of software solutions out there to show you the current key in use on your PC, but we like both NirSoft's ProduKey and ShowKeyPlus. ShowKeyPlus is available from the Microsoft Store, and NirSoft's ProduKey is available from the Nirsoft website.

NirSoft's ProduKey will probably trigger your antivirus. Because of what ProduKey does — and how it does it — your antivirus thinks it is or could be malicious. As long as you download it from the official site, you don't have to worry about it. Nirsoft has had a great reputation for a very long time.

ShowKeyPlus will show you both your OEM key and your retail ("installed") key if you have both. Otherwise, it'll just display your retail key.

How to Find Your Windows 10 Product Key Using the Command Prompt (3)

Nirsoft's UI is more minimalist. Your product key will be displayed to the right of your operating system, in our example we've obfuscated our key with a blue box.

How to Find Your Windows 10 Product Key Using the Command Prompt (4)

That's all there is to it. This way is quick, but this isn't likely a code you'll remember very easily.

Find Your Windows 10 Product Key Using a Windows Registry Method

This method is all over the web, but it doesn't return a real usable key on the latest version of Windows 10. (For example, this script in Microsoft's TechNet gallery works differently, but also grabs output from "DigitalProductId" in the registry.) This method has been defunct since 2020, and we recommend you use the method listed above instead. As of July 2020, we recommend you skip this section and use the above method instead.

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

First, open Notepad by right-clicking anywhere on the desktop, hovering over "New," and then selecting "Text Document" from the menu.

How to Find Your Windows 10 Product Key Using the Command Prompt (5)

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

Next, click the "File" tab and select "Save As."

How to Find Your Windows 10 Product Key Using the Command Prompt (6)

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

How to Find Your Windows 10 Product Key Using the Command Prompt (7)

Once you've entered a file name, save the file.

How to Find Your Windows 10 Product Key Using the Command Prompt (8)

You can now view your Windows 10 product key at any time by opening the new file.

How to Find Your Windows 10 Product Key Using the Command Prompt (9)
  • Windows
  • Windows 10

Your changes have been saved

Email is sent

Email has already been sent

Please verify your email address.

You’ve reached your account maximum for followed topics.

Manage Your List

Follow

Followed

Follow with Notifications

Follow

Unfollow

Readers like you help support How-To Geek. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.

How to Find Your Windows 10 Product Key Using the Command Prompt (2024)
Top Articles
Firewall Rule Configuration Best Practices - PCI DSS GUIDE
Yubikeys make me nervous, what happens when it breaks? or your house burns down....
My Arkansas Copa
Chicago Neighborhoods: Lincoln Square & Ravenswood - Chicago Moms
Manhattan Prep Lsat Forum
Ymca Sammamish Class Schedule
Holly Ranch Aussie Farm
Pike County Buy Sale And Trade
Tlc Africa Deaths 2021
Tight Tiny Teen Scouts 5
Louisiana Sportsman Classifieds Guns
Q Management Inc
Lazarillo De Tormes Summary and Study Guide | SuperSummary
Hocus Pocus Showtimes Near Amstar Cinema 16 - Macon
Unity - Manual: Scene view navigation
Pinellas Fire Active Calls
Drift Boss 911
Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
Orange Pill 44 291
Pasco Telestaff
Exl8000 Generator Battery
Talkstreamlive
Talk To Me Showtimes Near Marcus Valley Grand Cinema
Sienna
Elite Dangerous How To Scan Nav Beacon
Dtm Urban Dictionary
Sacramento Craigslist Cars And Trucks - By Owner
Japanese Emoticons Stars
Ff14 Sage Stat Priority
Average weekly earnings in Great Britain
Bus Dublin : guide complet, tarifs et infos pratiques en 2024 !
Reborn Rich Ep 12 Eng Sub
Empire Visionworks The Crossings Clifton Park Photos
Sams La Habra Gas Price
That1Iggirl Mega
Mixer grinder buying guide: Everything you need to know before choosing between a traditional and bullet mixer grinder
Gary Lezak Annual Salary
Thelemagick Library - The New Comment to Liber AL vel Legis
How To Upgrade Stamina In Blox Fruits
M Life Insider
Cl Bellingham
Best GoMovies Alternatives
Www Craigslist Com Atlanta Ga
Lucyave Boutique Reviews
Memberweb Bw
Streameast Io Soccer
Dancing Bear - House Party! ID ? Brunette in hardcore action
Superecchll
Costco Gas Price Fort Lauderdale
Jesus Calling Oct 6
Affidea ExpressCare - Affidea Ireland
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 6488

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.