How to Find Your Windows Product Key on PC
In this article
You can retrieve your Windows product key using built-in command-line tools or by checking the manufacturer's sticker if you have a physical device. For modern PCs running Windows 10 or 11, the license is often digitally linked to your motherboard, meaning a visible alphanumeric key may not be necessary for reinstallation. However, having the key is crucial for older systems, custom builds, or when transferring licenses to new hardware.
What You'll Need
- A Windows PC with administrative access
- Command Prompt (run as Administrator) or PowerShell
- For pre-built PCs: Check the device case or original packaging for a COA sticker
- For digital licenses: Your Microsoft Account credentials
Step-by-Step
- Open Command Prompt as Administrator: Press the
Windows Key, typecmdin the search bar, right-click on Command Prompt, and select Run as administrator. If prompted by User Account Control, click Yes. - Enter the Retrieval Command: In the black window that appears, copy and paste the following command exactly:
wmic path softwarelicensingservice get OA3xOriginalProductKey - Execute the Command: Press
Enter. The system will query the BIOS/UEFI firmware where the key is embedded during manufacturing. - Read the Output: Look for a 25-character alphanumeric string displayed below the command (formatted as XXXXX-XXXXX-XXXXX-XXXXX-XXXXX). This is your OEM product key. Note it down immediately, as the window may close quickly or scroll past.
- Alternative Method via Registry (If Command Fails): If the previous step returns blank, open PowerShell as Administrator and run:
(Get-CimInstance -Query 'SELECT * FROM SoftwareLicensingService').OA3xOriginalProductKey - Verify Digital License Status: To check if your current installation uses a digital license rather than a traditional key, go to Settings > Update & Security > Activation (Windows 10) or Settings > System > Activation (Windows 11). It will state whether Windows is activated with a digital license linked to your Microsoft Account.
Common Mistakes
Users often confuse the product key with the product ID. The Product ID is generated after installation and changes based on the edition; it is not the permanent license key. Another frequent error is attempting to use third-party "key finder" software from unverified sources. These tools can pose security risks or malware threats. Always rely on native Windows commands first.
Additionally, many users assume every PC has a visible sticker. Modern laptops and pre-builts from 2012 onward typically embed the key in the UEFI firmware. Stickers are now mostly found on desktop tower cases or older devices. Looking for a sticker on a sleek ultrabook is usually futile.
Tips
- Backup Your Key: Once retrieved, save the key in a secure password manager or write it on paper. Do not store it in plain text files on your desktop.
- Digital Licenses are Persistent: If you upgraded from Windows 7 or 8, or bought Windows 10/11 digitally, your license is tied to your Microsoft Account. You can reactivate on new hardware by signing in, even without the physical key.
- Check Email Receipts: If you purchased Windows digitally from the Microsoft Store or an authorized retailer, the key was sent to your email inbox at the time of purchase. Search your inbox for "Windows" or "Microsoft Store".
- OEM Restrictions: Keys embedded in the BIOS (OEM keys) are generally locked to that specific motherboard. They cannot legally or technically be transferred to a different computer.
Troubleshooting
If the command prompt returns nothing or an error, consider these steps:
1. Custom Built PC: If you built your own computer, there is no BIOS-embedded key. You must locate the key from your email receipt or the physical card included with your retail box. The methods above will not work for custom builds unless you previously entered the key manually.
2. Virtual Machines: Running Windows in a VM (like VMware or VirtualBox) does not have a physical motherboard to read. You must provide a valid key separately.
3. Corrupted WMI Repository: Rarely, the Windows Management Instrumentation (WMI) service may be corrupted. Restarting the computer can sometimes resolve temporary glitches preventing the command from reading the firmware.
4. Use PowerShell Script: As a fallback, you can extract the key from the registry using PowerShell: (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").ProductKey
Note: This method requires decoding the registry value and may show a generic placeholder if the key is stored securely in the TPM (Trusted Platform Module) rather than the standard registry location.
Frequently Asked Questions
Can I transfer my Windows product key to a new computer?
It depends on the license type. Retail keys can be transferred to one new device after deactivating the old one. OEM keys (embedded in the PC) are permanently bound to the original motherboard and cannot be transferred.
Does Windows 11 require a product key for activation?
Not necessarily. Most Windows 11 installations detect a digital license linked to your Microsoft Account or the hardware signature. A manual key entry is only required for fresh installs on unsupported hardware or non-digital purchases.
Is it safe to use third-party key finder software?
While many reputable tools exist, they are unnecessary since Windows provides native commands to retrieve the key. Using third-party software increases the risk of downloading bundled malware. Stick to Command Prompt or PowerShell.
Where is the product key located on a laptop?
On most modern laptops, it is embedded in the BIOS/UEFI. On older models, it may be on a sticker under the battery compartment or on the bottom chassis. There is rarely a sticker on the screen bezel or keyboard deck.
What if I lost my Microsoft Account password?
If your license is digital and linked to an account you can no longer access, recovery is difficult. You may need to contact Microsoft Support with proof of purchase. Having the 25-character key helps, but without account access, linking it to a new account can be complex.