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
Can a VPN Help Me with Packet Loss/Connection Problems?
How To Invest In A Startup
Funny Roblox Id Codes 2023
Srtc Tifton Ga
Kreme Delite Menu
Camera instructions (NEW)
Danatar Gym
Occupational therapist
Fort Carson Cif Phone Number
oklahoma city for sale "new tulsa" - craigslist
Lenscrafters Westchester Mall
Buckaroo Blog
Vichatter Gifs
Shariraye Update
Synq3 Reviews
Nioh 2: Divine Gear [Hands-on Experience]
Funny Marco Birth Chart
Hijab Hookup Trendy
Nyuonsite
Nutrislice Menus
Bj Alex Mangabuddy
Walmart stores in 6 states no longer provide single-use bags at checkout: Which states are next?
Moving Sales Craigslist
Beryl forecast to become an 'extremely dangerous' Category 4 hurricane
Vegas7Games.com
At&T Outage Today 2022 Map
Wisconsin Volleyball Team Boobs Uncensored
Reviews over Supersaver - Opiness - Spreekt uit ervaring
Jermiyah Pryear
Wku Lpn To Rn
Joann Fabrics Lexington Sc
Imagetrend Elite Delaware
Ezstub Cross Country
Ancestors The Humankind Odyssey Wikia
How to Watch the X Trilogy Starring Mia Goth in Chronological Order
Compare Plans and Pricing - MEGA
Sunrise Garden Beach Resort - Select Hurghada günstig buchen | billareisen.at
Überblick zum Barotrauma - Überblick zum Barotrauma - MSD Manual Profi-Ausgabe
Craigslist Free Manhattan
Taylor University Baseball Roster
Home Auctions - Real Estate Auctions
Craigslist Antique
Brake Pads - The Best Front and Rear Brake Pads for Cars, Trucks & SUVs | AutoZone
Nu Carnival Scenes
Fluffy Jacket Walmart
Yosemite Sam Hood Ornament
Dietary Extras Given Crossword Clue
Rubmaps H
Epower Raley's
Skybird_06
Invitation Quinceanera Espanol
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.