How to Find Your Windows Product Key (4 Methods That Work)
- Quick answer
- The digital licence truth
- The four methods, in order
- Method 1: Command Prompt or PowerShell
- Method 2: The Windows registry
- Method 3: Purchase email, sticker or card
- Method 4: Third-party key reader tools
- Digital licence or product key? How to tell
- What to do if you cannot find it
- Frequently asked questions
Quick answer
If you are wondering how to find your Windows product key, start here: open Command Prompt as an administrator and run wmic path softwarelicensingservice get OA3xOriginalProductKey. If a 25-character key appears, that is the OEM key your manufacturer baked into the PC's UEFI firmware. If the line comes back empty, nothing is broken - it almost certainly means your copy of Windows runs on a digital licence tied to the hardware rather than a key you typed in, which is how the majority of Windows 10 and Windows 11 machines are activated today.
That distinction matters more than any command, so this guide starts with it, then works through four methods that genuinely find a key - and ends with the honest answer for when there is no key to find at all.
The digital licence truth: why the command often returns nothing
Here is the thing almost no key-finding tutorial tells you up front. Most modern Windows 10 and Windows 11 installations do not have a visible 25-character product key. They have a Windows digital licence, which is a record on Microsoft's activation servers that links your activation to the hardware ID of that specific machine, and optionally to the Microsoft account you sign in with.
No key was typed in, so no key is stored. There is nothing for a command or a tool to reveal.
This is why people run a key-finder, see a blank result, and conclude their licence has vanished. It has not. A digital licence is arguably more robust than a key: it cannot be lost, leaked or mistyped. Wipe the drive, reinstall on the same PC, skip the key prompt, connect to the internet - Windows reactivates itself in a minute or two.
So when does a real key exist?
- OEM keys in firmware. Prebuilt desktops and laptops that shipped with Windows preinstalled usually have an OEM key written into the UEFI firmware by the manufacturer. That one is readable, and Method 1 reads it.
- Retail keys you bought. A key purchased as a card, a boxed copy or a digital delivery exists in exactly one reliable place: your purchase paperwork. If you bought from KeyKiwi, it is in the delivery email that landed seconds after checkout.
- Upgrade and in-place activations. Moving from Windows 10 to Windows 11, or Home to Pro, on an already-activated machine typically produces a digital licence with no new key at all.
One practical step is worth doing right now, whether or not you ever find a key: sign in and link the licence to a Microsoft account under Settings → Accounts. That link is what lets you run the Activation troubleshooter and reclaim your activation after a hardware change. Without it, a motherboard swap turns into a support call. With it, it is usually three clicks.
Tip: Before you hunt for anything, open Settings → System → Activation. If it reads "Windows is activated with a digital licence", you can stop looking. Your licence is intact, it will survive a reinstall on this hardware, and no key exists to copy down.
The four methods, in order
Work through these in sequence. Each one covers a different kind of licence, and the early ones take seconds.
- Run the firmware key command. Open Command Prompt or PowerShell as an administrator and query OA3xOriginalProductKey. This returns the OEM key that your manufacturer embedded in the UEFI firmware, or a blank line if there is not one.
- Read the DigitalProductId registry value. Open Registry Editor and go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion. The DigitalProductId value holds the stored key in encoded form, so you need a decoding script or tool to turn it into readable characters.
- Dig out your purchase email or sticker. Search your inbox for the original order confirmation or invoice, or look for the printed card inside a retail box and the sticker on a prebuilt machine. For a retail or upgrade licence this is usually the only place the key exists in readable form.
- Use a key reader tool you trust. A reader such as ProduKey or ShowKeyPlus decodes the stored product ID and shows it on screen. These tools need deep system access, so only run one you genuinely trust from the developer's own site.
Method 1: Command Prompt or PowerShell (30 seconds)
This is the method everybody means when they search for how to check a Windows product key with CMD. It is fast, it uses nothing but built-in Windows tooling, and it is completely safe - the commands only read licensing information.
- Right-click Start and choose Terminal (Admin), or search for "cmd" and pick Run as administrator. Administrator rights are required.
- Type or paste the command for your shell from the table below and press Enter.
- Read the result. A 25-character string in XXXXX-XXXXX-XXXXX-XXXXX-XXXXX format is your OEM key - write it down somewhere safe.
- If the output is blank or shows only the column header, you do not have a firmware key. Move on to Method 3, and read the digital licence section below.
| Command | Shell | What it returns |
|---|---|---|
wmic path softwarelicensingservice get OA3xOriginalProductKey | Command Prompt (admin) | The OEM key embedded in UEFI firmware. Blank for retail and upgrade installs. |
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey | PowerShell (admin) | Exactly the same value, in PowerShell syntax. Use this if wmic is unavailable. |
slmgr /dli | Either (admin) | Not a key - it shows the licence channel, such as RETAIL, OEM or VOLUME. Useful context. |
Two notes. wmic is deprecated in recent Windows builds, so if it errors use the PowerShell line - it queries the same service. And a blank result is the expected outcome on a self-installed or upgraded machine: it tells you that you are looking at a digital licence, not a missing key.
Run the slmgr /dli line while you are there. It prints no key, but it names the channel your licence came from - and that single word decides what you are allowed to do with it. See transferring a Windows licence to a new PC.
Method 2: The Windows registry (DigitalProductId)
Windows keeps a record of the installed product key in the registry, at this location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId
Open Registry Editor (press Windows + R, type regedit, press Enter), paste that path into the address bar and look at the DigitalProductId value. What you will see is a long block of binary data, not a key.
That is the important limitation: the value is encoded. Turning it back into 25 readable characters needs a decoding routine - a PowerShell or VBScript snippet, or one of the tools in Method 4. You cannot read it off the screen by eye.
So treat Method 2 as the explanation of why key readers work rather than a job to do by hand. And the usual caveat still applies: on a digital-licence machine there may be nothing meaningful encoded there at all.
Method 3: Your purchase email, invoice or sticker
This is the boring method, and it is the one that most often works. If you ever paid for a Windows licence as a key, the key is in your records.
- Search your inbox. Try searching for "product key", "Windows 11", "activation key", the seller's name, or the word "invoice" around the date you bought the machine or the licence. KeyKiwi orders arrive as a delivery email within seconds of payment, with the key and a downloadable invoice attached.
- Check the box. Retail copies of Windows ship with a printed card inside the packaging. The key is on that card, often behind a scratch panel.
- Check the machine. Older prebuilt desktops and laptops carry a Certificate of Authenticity sticker on the case, the base, or inside the battery compartment. Newer machines moved the key into firmware instead, which is what Method 1 reads.
- Check the retailer account. If you bought through an online store, the order history page frequently still shows the delivered key years later.
Dull, but it beats every command above on one point: it hands you the full key in writeable form, ready to enter on another machine if your licence type permits it.
Save 10%: If the hunt ends with you needing a fresh licence, coupon code KIWI10 takes 10% off any order at KeyKiwi - genuine EU-sourced keys, emailed in seconds, invoice included and backed by our activation guarantee.
Method 4: Third-party key reader tools (with a caveat)
Tools such as ProduKey and ShowKeyPlus do one job: read the stored product ID, decode it, display it. They are the friendly front end to Method 2, and on a machine that genuinely has a key stored they find it in seconds. ShowKeyPlus also shows the firmware OEM key and the installed key side by side, which helps when the two differ.
Watch out: A key reader needs deep access to your system, and key-finder search results are notoriously full of repackaged builds bundled with adware or worse. Only run a tool you genuinely trust, downloaded from the developer's own site rather than a download portal. If you are not confident about a particular tool, do not run it - Method 1 and Method 3 cover most real cases without installing anything.
There is a second reason not to lean on them too hard. On a digital-licence machine they often show a generic placeholder key - the same string shared across thousands of installs - which cannot activate anything. Seeing it confirms you are on a digital licence, not that you found something usable.
Digital licence or product key? How to tell in 20 seconds
Everything above gets simpler once you know which of the two you are dealing with. Open Settings → System → Activation and compare what you see against this table.
| Signal | Digital licence | Typed-in product key |
|---|---|---|
| Activation page wording | "Windows is activated with a digital licence" | "Windows is activated with a product key" |
| Firmware key command | Usually blank, unless the PC also shipped with an OEM key | Returns a key if it was an OEM machine; blank if the key was retail |
| Where the licence lives | On Microsoft's servers, bound to your hardware ID | In your purchase email, on a card, or in firmware |
| After a clean reinstall | Reactivates automatically once online - skip the key prompt | Re-enter the key, or let the digital licence created at first activation take over |
| After a hardware change | Use the Activation troubleshooter with a linked Microsoft account | Re-enter the key, then use the troubleshooter if it refuses |
| Can you write it on a sticky note? | No - there is nothing to write | Yes, all 25 characters |
One wrinkle: these are not mutually exclusive. A machine can hold an OEM key in firmware and a digital licence created at first activation - which is why ShowKeyPlus shows two fields. The digital licence is what keeps you activated day to day.
What to do if you cannot find it at all
At some point the search stops being worth your time. If the firmware command, your inbox and the sticker hunt have all come up empty, you are in one of three situations - and two of them are fine.
You are already activated. The Activation page says so. In that case you do not need a key, full stop. Reinstalls on this hardware will reactivate themselves. Link the licence to a Microsoft account and move on with your life.
You are not activated, and the licence was never yours. Common with second-hand machines and PCs rebuilt from spare parts. An OEM licence belongs to the original motherboard, and a key someone else bought is not transferable to you. No command will produce a key you never owned.
You are not activated, and the key is simply gone. The seller disappeared, the email is lost, the sticker peeled off years ago. A fresh licence costs less than the hours you would spend chasing it, and it comes with an invoice and support an orphaned key never will.
KeyKiwi keys are genuine retail-type digital licences sourced from authorised EU channels. Delivery is by email within seconds of payment, every order includes an invoice, and every key carries an activation guarantee - if it does not activate, we fix it or refund you in full. Browse the full Windows keys range, or pick one of the three below.
Not sure which edition to buy? Our Windows 11 Home vs Pro breakdown settles it in a few minutes, and if you are still weighing the jump at all, compare Windows 10 vs Windows 11 first. Once the key arrives, follow our Windows 11 activation walkthrough and you will be done in two minutes. Worried that a cheap licence is too good to be true? That is a fair question, and we answer it bluntly in are cheap Windows keys legit.
Older machine that will not clear the Windows 11 hardware checks? A Windows 10 Pro licence keeps it activated for less.
Frequently asked questions
Why does the product key command return a blank line?
Because the OA3xOriginalProductKey command only reads OEM keys that the manufacturer embedded in the UEFI firmware. If Windows was installed from a retail key, an upgrade, or activated with a digital licence, there is nothing in firmware to read, so the command returns an empty result. That is normal behaviour, not a fault, and it does not mean your Windows is unlicensed.
How do I find my Windows 11 product key if I upgraded from Windows 10?
In most cases there is no key to find. A Windows 10 to Windows 11 upgrade carries the existing activation forward as a digital licence tied to the hardware, so no new 25-character key is issued. Check Settings, System, Activation: if it says activated with a digital licence, the key question is moot and reinstalling on the same PC will reactivate automatically.
Is it safe to use a product key finder tool?
Key readers such as ProduKey and ShowKeyPlus simply decode the product ID that Windows already stores, and the well-known ones have been around for years. But they need deep system access, and search results are full of repackaged copies bundled with adware. Only run a tool you genuinely trust, downloaded from the developer's own site, and treat anything else with suspicion.
Do I need my product key to reinstall Windows on the same PC?
No. If the machine was activated before, Microsoft holds a digital licence against its hardware ID. Skip the key prompt during setup, finish the install, connect to the internet and Windows reactivates on its own. Keep the key or invoice anyway as proof of purchase, and link the licence to a Microsoft account so you can use the Activation troubleshooter later.
What should I do if I genuinely cannot find a key and need one?
Buy a fresh genuine licence rather than spending hours hunting for a key that may never have existed. KeyKiwi sells retail-type digital licences sourced from authorised EU channels, delivered by email within seconds, with an invoice and an activation guarantee - if the key does not activate, we fix it or refund you in full.
Written by the KeyKiwi team - we've been in digital software licensing for 18+ years. Every key we sell is sourced from authorized channels and covered by our activation guarantee. Questions? Talk to a human.