Where to find product key for windows 10

on April 8, 2021, 5:22 AM PDT

3 simple ways to find your Windows 10 product key

Have you lost your Windows 10 product key? You can find it listed in the operating system itself with a little know-how and just a few simple commands.

Where to find product key for windows 10

Image: ImageFlow/Shutterstock

For most users, particularly with Microsoft Windows 10, the last operating system you will ever need, there has been no need for product keys because there has been no “new” version of Windows. When this article was first published in August 2021, Windows 11 was a pending release – now that it’s available, we have tips on how to find your product key in Windows 11. However, some users may still need to know their Windows 10 product key.

SEE: Checklist: Securing Windows 10 systems (TechRepublic Premium)

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 printed in fine print on the backside of your PC, there are less strenuous ways to track down your Windows 10 product key.

This how-to tutorial shows you how to find your Windows 10 product key using the power of the operating system itself.

How to find your Windows 10 product key

Before we begin, note that 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.

SEE: 83 Excel tips every user should master (TechRepublic)

1. Command prompt

The most direct method for finding your Windows 10 product key is from the command line. Type “cmd” into the Windows 10 desktop search box and then right-click the command line result and select “run as administrator” from the context menu. 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

Where to find product key for windows 10

2. PowerShell

If you are using Windows 10 PowerShell, the process is similar. Right-click the Start Menu button and then select Windows PowerShell (Admin) from the context menu. Type this command at the prompt to reveal the product key as shown in Figure B.

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

Figure B

Where to find product key for windows 10

3. Registry File

As you might imagine, the product key is stored in the Windows 10 Registry File, so it is possible to find the code there if you know the right key. Type “regedit” into the Windows 10 desktop search and select the appropriate item in the results. 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

Where to find product key for windows 10

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, however, the product keys 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 in the discussion.

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. Also, keep in mind that if you bought Windows 10 from the Microsoft Store, your account order history would have product key information available.

Also See

  • Windows 10 PowerToys: A cheat sheet (TechRepublic)
  • How to change the registered license owner in Windows 10 (TechRepublic)
  • How to activate Microsoft Defender Application Guard in Windows 10 (TechRepublic)
  • Windows 10 Start menu hacks (TechRepublic Premium)
  • Must-read coverage: Windows 10 (TechRepublic on Flipboard)

  • Microsoft
  • Software