There usually comes a moment when you suddenly need your Windows product key and realise you have no idea where it is. Maybe you are reinstalling Windows after a hard drive failure, moving your licence to a new PC, upgrading from Home to Pro, or simply trying to prove that your copy of Windows is genuine. The good news is that on most modern computers the key is not lost at all.
This guide walks you through every reliable method for Windows 11 and Windows 10, from the simplest Settings check to Command Prompt and PowerShell commands, the registry, and the firmware embedded key on laptops and pre-built PCs. You will also learn the important difference between a product key and a digital licence, because in many cases you do not actually need the 25-character key at all. Follow the methods in order and stop as soon as one works for you.
First, Understand What Kind of Licence You Have
Before hunting for a key, it helps to know what you are looking for. A traditional Windows product key is a 25-character code in five groups of five, like XXXXX-XXXXX-XXXXX-XXXXX-XXXXX. Retail keys bought from Microsoft or an authorised shop come on a card, in an email, or on a sticker. OEM keys, by contrast, are supplied by the PC manufacturer and are often embedded directly into the motherboard firmware, so there is no sticker and no paperwork to lose.
Many Windows 11 and upgraded Windows 10 PCs do not rely on you typing a key at all. Instead, they use a digital licence linked to your hardware and, ideally, to your Microsoft account. You can check this by going to Settings > System > Activation on Windows 11, or Settings > Update & Security > Activation on Windows 10. If the page says Windows is activated with a digital licence linked to your Microsoft account, a clean reinstall on the same hardware will normally reactivate automatically once you sign in and connect to the internet. The official Microsoft guide to activating Windows explains how digital licences and product keys differ in detail.
Check Your Activation Status First
Open Settings using Windows key + I, navigate to the Activation page as above, and expand the Activation state section if it is collapsed. Note whether it says Active, which edition is installed, such as Windows 11 Home or Pro, and how activation was achieved. This matters because a Home key will not activate Pro, and vice versa.
Method 1: Find Your Key With Command Prompt
For most laptops and pre-built desktops from brands like Dell, HP, Lenovo, ASUS and Acer, the fastest method is a single Command Prompt command that reads the key embedded in the UEFI or BIOS firmware. This works even if Windows is currently activated with a different key, because it shows the original OEM key the manufacturer installed at the factory.
Step-by-Step Instructions
Click the Start button, type cmd, right-click Command Prompt in the results, and choose Run as administrator. Approve the User Account Control prompt if it appears. In the black Command Prompt window, type exactly the following command and press Enter: wmic path softwarelicensingservice get OA3xOriginalProductKey. After a second or two, the 25-character key will appear under the heading OA3xOriginalProductKey.
If nothing appears, do not panic. That simply means your PC does not have a firmware-embedded key, which is normal for custom-built PCs and older machines. Move on to the PowerShell and registry methods below, which look in different places.
Method 2: Retrieve the Key Using PowerShell
PowerShell can query the same licensing service through a different route and is a good alternative if the wmic tool has been removed or returns an error on your system, which is increasingly common on newer Windows 11 builds where wmic is deprecated.
Step-by-Step Instructions
Right-click the Start button and select Terminal (Admin) or Windows PowerShell (Admin), depending on your version. In the window that opens, type (Get-CimInstance -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey and press Enter. If an embedded key exists, it will be displayed on the next line. As with Command Prompt, an empty result means there is no firmware key stored, not that Windows is unlicensed.
Method 3: Check the Registry for the Installed Key Details
The Windows Registry stores activation data, but there is an important catch you should understand. The product key stored at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion under the value DigitalProductId is encoded, not plain text, so simply opening Registry Editor will not show you a readable 25-character key. Some older guides claim otherwise, and readers waste a lot of time looking for something that is not there in readable form.
What the registry is useful for is confirming your exact edition and build. Press Windows key + R, type regedit, press Enter, and navigate to that CurrentVersion key to see ProductName, EditionID and CurrentBuild. Alternatively, press Windows key + R, type winver, and press Enter for a quick summary dialog. If you explore the registry, do not change any values. Editing activation entries will not reveal a hidden key and can cause genuine activation problems. For more help solving everyday system issues like this, browse our Windows and PC troubleshooting guides and tutorials for step-by-step fixes written in plain language.
Method 4: Look in the Obvious Physical and Digital Places
It sounds basic, but a surprising number of keys are simply filed away and forgotten. Check the original Windows packaging if you bought a retail copy, the confirmation email from the Microsoft Store or retailer, and your Microsoft account order history at account.microsoft.com under Services and subscriptions. On older desktops and laptops, look for a Certificate of Authenticity sticker on the side panel, the underside of the laptop, or inside the battery compartment.
If Windows Will Not Boot at All
If your PC will not start, you can still recover a firmware key. Create Windows installation media on another computer using a USB drive, boot the faulty PC from that USB by choosing it in the boot menu, and at the first setup screen press Shift + F10 to open Command Prompt. From there, run the same wmic command described earlier. Because that command reads the motherboard firmware rather than the broken Windows installation, it often works even when the drive itself has failed.
Method 5: Link Your Licence Before You Reinstall
The smartest move is to prepare before you ever need the key. Go to Settings > Accounts > Your info and make sure you sign in with a Microsoft account rather than a local account only. Then return to the Activation page and confirm it mentions your Microsoft account.
Common Mistakes and Helpful Tips
The most common mistake is downloading random key-finder programs from unfamiliar websites. Some are legitimate, but many bundle adware or malware, and none of them can do anything the built-in commands in this guide cannot. Never pay a site that promises to generate a Windows key for you; those keys are either fake, already used, or in breach of Microsoft’s terms, and they typically fail activation later.
Keep a private record once you find your key. Save it in a password manager or write it down and store it with your PC paperwork, but never post it publicly or share screenshots showing the full key, because anyone could use it. Also remember that an OEM key is tied to the original motherboard and generally cannot be transferred to a completely different PC, while a retail key usually can be moved, provided it is removed from the old machine first.
Conclusion
Finding your Windows product key is usually far easier than people expect. Start by checking your activation status in Settings to see whether you have a digital licence, then try the Command Prompt wmic command and the PowerShell alternative to reveal any firmware-embedded key. Check your emails, Microsoft account and any stickers for retail keys, and link your licence to your Microsoft account so future reinstalls activate almost automatically.
Frequently Asked Questions
Can I find my Windows product key if I lost the sticker?
Yes, in most cases. If your PC came with Windows pre-installed, run wmic path softwarelicensingservice get OA3xOriginalProductKey in an administrator Command Prompt to read the key from the firmware. For retail copies, check your purchase email and Microsoft account order history.
Is my product ID the same as my product key?
No. The product ID is an identifier generated during installation and cannot activate Windows. The product key is the separate 25-character code in five groups of five. Only the product key, or a digital licence, can prove your right to activate.
Will my key work after I change my motherboard?
Retail keys can usually be transferred, especially when linked to your Microsoft account, using the Activation troubleshooter. OEM keys are tied to the original motherboard and normally cannot be moved to a new board, so a new licence may be required.
Do I need a product key to reinstall Windows 11?
Often not. If your PC has a digital licence or a firmware-embedded key, choose I don’t have a product key during setup, install the same edition as before, and Windows will activate itself automatically once you go online.
Are free product key finder tools safe to use?
Many are bundled with unwanted software, and some are outright malicious. The built-in Command Prompt and PowerShell methods in this guide reveal the same embedded key safely, so there is rarely any reason to install a third-party finder.


Leave a Reply