Your Windows 10 product key should be listed on a sticker located on your computer hardware somewhere — typically in the most inaccessible spot possible. But before you go crawling behind your desk looking for a 25-digit alphanumeric code in fine print on the backside of your PC, there are less strenuous ways to track down your Windows 10 product key.

This tutorial shows you how to find your Windows 10 product key using the power of the operating system. We have also published tips on how to find your product key in Windows 11.

How to find your Windows 10 product key

The success of any of these methods is largely dependent on how your PC was activated. If you activated Windows 10 by upgrading from a valid Windows 7 or 8 installation or with the computer’s recent purchase, you are likely to find the product key with most of these methods. However, if your PC was activated as part of an organization’s licensing agreement, finding a product key may be more problematic.

DOWNLOAD this checklist for securing Windows 10 systems from TechRepublic Premium

1. Command prompt

The most direct method for finding your Windows 10 product key is from the command line.

  1. Type cmd into the Windows 10 desktop search box.
  2. Then, right-click the command line result.
  3. Select run as administrator from the context menu.
  4. Type this command at the prompt:

wmic path softwareLicensingService get OA3xOriginalProductKey

As you can see in Figure A, the command will display your current Windows 10 product key.

Figure A

Displaying the Windows 10 product key with the command prompt.
Displaying the Windows 10 product key with the command prompt.

2. PowerShell

If you are using Windows 10 PowerShell, the process is similar:

  1. Right-click the Start Menu button.
  2. Select Windows PowerShell (Admin) from the context menu.
  3. Type this command at the prompt to reveal the product key (Figure B).

powershell "(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey"

Figure B

Displaying the Windows 10 product key with PowerShell.
Displaying the Windows 10 product key with PowerShell.

3. Registry File

As you might imagine, the product key is stored in the Windows 10 Registry File, so it’s possible to find the code there if you know the right key. To do so:

  1. Type regedit into the Windows 10 desktop search, and select the appropriate item in the results.
  2. Navigate to this key:

ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform

As you can see in Figure C, the BackupProductKeyDefault key will reveal a valid Windows 10 product key.

Figure C

Displaying the Windows 10 product key with the Registry Editor
Displaying the Windows 10 product key with the Registry Editor

Note: In my case, the Windows 10 product key displayed by both the command prompt and PowerShell methods are the same; in the registry example, the product key is different. The best explanation I can suggest is that because I upgraded from Home to Pro on the example PC, the product key displayed is for the upgrade to Pro or vice versa. If you have a better solution, please let us know.

SEE: Windows 10 and 11 in S Mode: What Is It, and Should You Use It?

Other ways to find your Windows 10 product key

There are third-party vendors offering applications that can locate and display your Windows 10 product key as well, but they essentially do the same thing we did here without involving someone else’s programming and potential security issues.

In addition, keep in mind that if you bought Windows 10 from the Microsoft Store, your account order history would have product key information available.

Tech