How to Find Windows 10 Product Key on PC
In this article
You can retrieve your Windows 10 product key directly from the system using a simple command-line script or by inspecting the BIOS/UEFI firmware. This process is essential when reinstalling Windows, migrating to a new computer, or verifying license status for troubleshooting activation errors. No additional software downloads are required, as these methods rely entirely on built-in Windows tools and hardware data.
What You'll Need
- A Windows 10 PC that is currently running and accessible
- Administrator privileges (you must be logged in as an admin)
- A text editor like Notepad (pre-installed with Windows)
Step-by-Step
- Use the Command Prompt Method (Recommended for Digital Licenses): This is the most reliable way to find the key embedded in your motherboard's firmware. Press the
Windows Key + Rto open the Run dialog box. Typecmdand pressCtrl + Shift + Enterto run Command Prompt as an administrator. If prompted by User Account Control, click Yes. - Enter the Retrieval Command: In the black Command Prompt window, copy and paste the following single line of code exactly as it appears:
wmic path softwarelicensingservice get OA3xOriginalProductKey. PressEnterto execute the command. - Read the Result: Wait a few seconds. The system will display a 25-character alphanumeric string below the command. This is your actual product key. Write it down or take a screenshot immediately, as this method only works if the key was embedded in the BIOS during manufacturing (common for pre-built PCs).
If the command returns nothing or an error, proceed to the PowerShell method, which accesses the registry where the key is stored for many installations.
- Use the PowerShell Method (Registry Access): Right-click the Start button and select Windows PowerShell (Admin) or search for PowerShell in the taskbar, right-click it, and choose Run as administrator.
- Paste the Script: Copy the following VBScript code block:
$key = (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey Write-Host $key
Paste it into the PowerShell window by right-clicking inside the window and selecting Paste, then pressEnter. - Extract the Key: The 25-character key will appear in white text on the screen. Note that this method retrieves the key currently associated with the digital license or the installed edition. If you upgraded from Windows 7 or 8.1, this might show the original upgrade key rather than the generic Windows 10 key.
For users who prefer a visual interface without coding, you can use a small, free utility called ProduKey by NirSoft. While effective, this requires downloading third-party software. If you choose this route, download it from the official NirSoft website, extract the ZIP file, and run ProduKey.exe as administrator. The tool will instantly list the product key for the installed OS in its main window.
Common Mistakes
- Confusing License Type with Key: Many modern Windows 10 installations use a "Digital License" linked to your Microsoft Account. In these cases, there may not be a visible 25-character key to enter manually. The key exists in the cloud, not on the disk. Trying to force a key entry when a digital license is active is unnecessary.
- Using Generic Keys: Searching online for "generic Windows 10 keys" will give you installation keys (e.g., W269N-WFGWX-YVC9B-4J6C9-T83GX). These allow you to install Windows but will not activate it permanently. They are not your unique product key.
- Ignoring Case Sensitivity: When typing or copying keys, ensure you do not confuse the letter
Owith the number0, or the letterIwith the number1. Product keys use specific character sets that exclude ambiguous characters in some contexts, but always verify carefully. - Running Non-Admin Commands: Attempting to run the WMIC or PowerShell commands without administrator rights will result in access denied errors. Always ensure you have elevated privileges.
Tips
- Check the Sticker: For older desktops or laptops purchased before 2012, look for a COA (Certificate of Authenticity) sticker on the case, under the battery, or behind the side panel. It usually contains the physical product key.
- Link Your Account: If you have a valid digital license, go to Settings > Update & Security > Activation and click Add an account to link your Microsoft Account. This ensures that even if you replace the hard drive, Windows will reactivate automatically upon connecting to the internet.
- Screenshot Immediately: Once you see the key in Command Prompt or PowerShell, take a screenshot or write it down. Terminal windows can clear their history, making it difficult to retrieve the value later if you close the window accidentally.
- Verify Edition Match: Ensure the key you retrieve matches the edition of Windows you intend to install (Home vs. Pro). A Pro key cannot activate Home edition, and vice versa.
Troubleshooting
If the methods above fail to return a key, consider the following scenarios:
- Command Returns Blank: This typically means the key is not embedded in the BIOS/UEFI. This is common on custom-built PCs where the user purchased a retail key separately. In this case, check your email receipts from Microsoft or the retailer (Amazon, Best Buy, etc.) for the purchase confirmation containing the key.
- PowerShell Errors: If PowerShell throws an error about execution policy, you may need to run
Set-ExecutionPolicy Unrestrictedfirst, though this is rarely needed for a single read-only command. Alternatively, stick to the Command Prompt WMIC method. - Digital License Only: If you see "Windows is activated with a digital license" in Settings, you likely do not need a product key. The license is tied to your hardware ID. Reinstalling Windows 10 Pro (matching your current edition) should reactivate it automatically. If it does not, sign in with the Microsoft Account used previously.
- Third-Party Tool Failures: If ProduKey fails to load, ensure you are running it as Administrator. Antivirus software may occasionally flag such low-level hardware access tools; temporarily disable real-time protection if necessary, but only download from the official source.
Frequently Asked Questions
Can I find my Windows 10 product key if I bought a digital license?
Often, no. Digital licenses are tied to your Microsoft Account or hardware ID rather than a printable 25-character key. However, the key still exists in your system's registry and can be retrieved using the PowerShell or CMD methods described above.
Will retrieving the key deactivate my current Windows installation?
No. Reading the key from the registry or BIOS is a passive operation. It does not change any settings, deactivate the OS, or affect your license status. It simply displays information already present on your machine.
What if my PC came with Windows 10 Home but I want to use a Pro key?
You cannot use a Home key to activate Pro, nor can you use a Pro key to activate Home. You must purchase a separate upgrade license for Windows 10 Pro if you wish to switch editions. The key retrieval methods will show the key for the currently installed edition.
Is it safe to use third-party tools like ProduKey?
Yes, provided you download them from the official developer's website (NirSoft). These tools are widely trusted in the IT community. However, always exercise caution with any executable downloaded from the internet and ensure your antivirus definitions are up to date.
How do I reactivate Windows if I change my motherboard?
If you have a retail key (purchased separately), you can transfer it to the new hardware by going to Settings > Update & Security > Activation and clicking Change product key. If you have a digital license linked to your Microsoft Account, you may need to use the "I didn't list this device" option in the Troubleshooter to manually transfer the license.