How to get my windows 10 product key

In this quick tutorial we'll go over what a Windows product key is, and I'll share several ways to find the product key on modern Windows machines.

What's a Windows 10 product key?

A Windows product key or license is a 25 digit code used to activate your installation of Windows.

Back in the day, all you had to do to find your Windows product key was look for a sticker somewhere on the machine.

Usually you could find the sticker on the side of a desktop PC, or stuck to the bottom of a laptop:

How to get my windows 10 product key
An old-school Windows product key sticker – Source

Or if you bought a physical copy of Windows, your product key would be included somewhere in the box:

How to get my windows 10 product key
A Windows 10 product key label - Source

These days, if you buy a Windows 10 Home or Pro from the Microsoft Store or another online retailer like Amazon, it'll include a digital copy of your product key.

But if your computer is relatively new and came with Windows preinstalled, you might be wondering how to find your key – there's likely no sticker on the machine, and the computer manufacturer probably didn't include one in the box.

Whether you installed and activated Windows yourself, or it came preinstalled, your product key is stored in the BIOS. This makes it really easy if you ever want to reinstall or upgrade Windows – there's no sticker on the machine that could get damaged, and no small label to lose.

Still, there are times when you might need your product key, like if you want to transfer a Windows Home or Pro license to another machine.

Whatever the reason, here are a few ways to get your Windows 10 product key.

How to get your Windows 10 product key with the Command Prompt

If you want to get your product key from Windows, the easiest way is to do that is through the Windows Command Prompt.

First, press the Windows key, search for "cmd", and click on "Run as administrator":

How to get my windows 10 product key

Then, run the following command:

wmic path softwarelicensingservice get OA3xOriginalProductKey

After that, you'll see your Windows 10 product key:

How to get my windows 10 product key

Alternatively, you can run this command in the Command Prompt terminal:

powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey"
How to get my windows 10 product key

Both of these commands attempt to read your Windows product key from something called the OA3 BIOS marker. In other words, they may only work if Windows came preinstalled, and not if you built the machine yourself and installed/activated Windows.

If your product key isn't saved to your BIOS/UEFI for some reason, then these commands will either throw an error or return an empty string. In this case, or if you prefer a GUI, give the next method a try.

How to get your Windows 10 product key with a third-party program

There are a few tools out there like Belarc Advisor or Magical Jelly Bean KeyFinder that can detect your Windows product key.

We'll use Magical Jelly Bean KeyFinder for this tutorial because, well – come on, that name, right?

All you have to do is download and install Magical Jelly Bean KeyFinder. Then open the KeyFinder program to see your product key:

How to get my windows 10 product key

Once you've copied your product key somewhere safe, feel free to uninstall Magical Jelly Bean KeyFinder.

So those are some quick ways to find your Windows 10 product key.

Did any of these methods or programs work for you? Did you find another way to get your product key? Let me know over on Twitter.

ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT


How to get my windows 10 product key
Kris Koishigawa

Read more posts.


If you read this far, tweet to the author to show them you care. Tweet a thanks

Learn to code for free. freeCodeCamp's open source curriculum has helped more than 40,000 people get jobs as developers. Get started

It's important to know how to find your Windows 10 product key at a moment’s notice. Recovering after a system wipe, building a new PC for fun or just replacing a broken one — you never know when you’ll need to reinstall your copy of Windows. And since the product key is needed to utilize all of Windows 10’s features as well as receive crucial updates, placing it in a secure location for later use is wise.  

If you do happen to misplace your Windows 10 product key, don’t worry. The physical key isn’t actually needed thanks to a Command Prompt; with a few clicks here and there, you’ll be able to pull up the missing key on your PC. Take a look at our guide below as it explains the step-by-step process.

  • Here's the best Windows 10 antivirus software
  • How to use Enhanced Search Mode in Windows 
  • How to create a Kill Switch in Windows

Note that the following instructions are for people who either purchased a physical copy of Windows 10 or bought the digital version through an authorized reseller. If you purchased a digital copy via the Microsoft Store, then Windows 10 is connected to your Microsoft account. 

All you’d have to do is log into Microsoft after reinstalling Windows 10 to get back up to speed. If you bought a computer with Windows 10 already installed, like a Microsoft Surface, the product key is baked into the firmware and cannot be pulled up. 

How to find your Windows 10 product key

1. Click the Windows search box and type in Command Prompt.

How to get my windows 10 product key

(Image credit: Kenneth Seward Jr. | Future)

2. Once the Command Prompt entry pops up, right click that option and select “Run as administrator." Click ‘Yes’ when prompted.

(Image credit: Kenneth Seward Jr. | Future)

3. Once the Command Prompt window opens, type or copy and paste the following command:

wmic path SoftwareLicensingService get OA3xOriginalProductKey 

This is case-sensitive, so make sure you copy it exactly as it’s written or it won’t work. After you’ve typed/pasted it into the Command Prompt window, press Enter.

(Image credit: Kenneth Seward Jr. | Future)

4. Provided you've done everything correctly, your Windows product key should appear under the command you typed in. Be sure to write it down and place it somewhere safe. 

(Image credit: Kenneth Seward Jr. | Future)

And there you have it. One hidden Windows 10 product key just waiting to be verified. The great thing about this method of retrieval is that it can be done at any time. 

Even if your PC dies you won’t have to worry because Windows 10 can run without the product key, just not a full capacity. All you’d have to do is install Windows 10 again, use the Command Prompt to find the key and then verify it online. 

  • More: How to change Command Prompt color in Windows 10
  • How to use System Restore in Windows 10
  • How to enable God Mode in Windows 10

More Windows 10 tips

How to encrypt files on Windows 10 | How to install Windows 10 | How to turn on Bluetooth for Windows 10 | How to screenshot on Windows 10 | How to boot into Windows 10 safe mode | How to split the screen on Windows 10 | How to record a screen on Windows 10 | How to update drivers on Windows 10 | Mapping a network drive in Windows 10 | How to update Windows 10 | How to change the password on Windows 10 | How to factory reset on Windows 10 | How to reinstall Windows 10