Blog
How to Find Windows 10 License Key (CMD, PowerShell, Registry)
Windows 10 never displays your full 25-character license key in any Settings menu. The key may be stored in your PC’s firmware, tucked into the registry, printed on a sticker — or, on millions of machines, it may not exist at all, because the system activates with a digital license instead. Windows treats the full key on a need-to-know basis, and it has quietly decided that you do not need to know.
That raises the questions people actually search for. Which command shows the key in CMD? Does PowerShell work better? Is the key hiding in the registry, and can you trust what you find there?
This guide walks through exactly how to find license key Windows 10 keeps on your PC — with CMD, PowerShell, slmgr and the registry — plus what a blank result really means, with practical checks and beginner-friendly explanations along the way.
How to Find License Key Windows 10: Quick Answer
Here is the full procedure, fastest method first:
- Click Start, type
powershell, right-click Windows PowerShell and choose Run as administrator. - Run
(Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKey. - If a 25-character key appears, that is the key embedded in your PC’s firmware — record it somewhere safe.
- If the result is blank, open Command Prompt as administrator and run
wmic path softwarelicensingservice get OA3xOriginalProductKey. - Run
slmgr /dlito confirm your edition, license channel and the last five characters of the active key. - Open
regeditand check theBackupProductKeyDefaultvalue under the SoftwareProtectionPlatform key. - Check the COA sticker on the machine, the card inside the retail box, or your purchase confirmation email.
- If every method comes back empty, your PC almost certainly uses a digital license — there is no key to find, and that is normal.
- Confirm everything is fine under Settings > Update & Security > Activation.
In simple terms: PowerShell → CMD → slmgr → Registry → Sticker or Email → Digital License Check.
Is This the Right Guide for You?
This article focuses purely on Windows 10 and goes deeper into each command, the registry and the blank-result problem. If you want a broader overview, a sibling guide covers other Windows versions too:
| You want to find | Use this guide |
|---|---|
| A Windows 10 license key, in depth | You are in the right place |
| A key on Windows 11, 10 or 7, general overview | How to Find Your Windows Product Key (Windows 11, 10, 7) |
| A Microsoft Office key | How to Find Your Microsoft Office Product Key |
Office keys are stored and recovered completely differently, so the Windows commands below will not reveal them.
License Key, Product Key or Digital License: What Do You Actually Have?
“License key” and “product key” mean the same thing in Windows 10: a 25-character code in the format XXXXX-XXXXX-XXXXX-XXXXX-XXXXX. A digital license is different — it is an activation record tied to your hardware on Microsoft’s servers, with no code involved. For the full background, read our guide to What Is a Windows Product Key? Beginner’s Guide.
How you got Windows 10 decides where the key lives, so it is worth ten seconds to identify your situation:
| How you got Windows 10 | Where the key usually is | Best method |
|---|---|---|
| Preinstalled on a laptop or desktop (OEM) | Embedded in the UEFI firmware | PowerShell or CMD (Methods 1–2) |
| Boxed retail copy | Card or label inside the box | Method 4 |
| Digital purchase from a retailer | Confirmation email or your retailer account | Method 4 |
| Free upgrade from Windows 7 or 8.1 | No key — digital license | See the blank-result section |
| Company or school PC (volume license) | Held by your IT department | Ask your administrator |
| Older PC upgraded long ago (pre-Windows 8) | COA sticker on the case | Method 4 |
OEM (preinstalled) and retail keys also behave differently when you change hardware. Our Windows OEM vs Retail Key comparison explains which one you own and what that means for transfers.
Before You Start: Quick Checklist
You need very little for this task, but check these first:
- An administrator account on the PC — standard accounts cannot run the licensing queries.
- Five minutes and a place to record the key (password manager, printed note, or both).
- No downloads. Every method in this guide uses tools already built into Windows 10.
STOP: Avoid “free key finder” utilities from unknown websites. Many bundle adware or worse, and nothing they reveal is beyond what the built-in commands below already show you.
Method 1: Find the Key with PowerShell
This is the most reliable method on modern Windows 10 machines, and it is the approach Microsoft steers administrators toward now that older command-line tools are being retired.
- Click Start and type
powershell. - Right-click Windows PowerShell and choose Run as administrator.
- Type the following command and press Enter:
(Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKey
If your PC shipped with Windows preinstalled, a 25-character key appears. This is the key the manufacturer injected into the UEFI firmware under OEM Activation 3.0 (OA3), Microsoft’s system for embedding the license in the motherboard rather than on a sticker.
A blank line is not an error. It simply means no key is stored in the firmware — common on self-built PCs, machines activated with a retail key you typed in yourself, and systems running on a digital license. The command did its job; there was nothing to report.
Method 2: Find the Key with CMD (wmic and slmgr)
Prefer the classic Command Prompt? The equivalent query works there too:
- Click Start, type
cmd, right-click Command Prompt and choose Run as administrator. - Run the following command:
wmic path softwarelicensingservice get OA3xOriginalProductKey
This reads the same firmware value as the PowerShell method, so the two will always agree. One caveat about the tool itself: Microsoft deprecated the WMIC utility back in Windows 10 version 21H2, and its official WMIC removal notice confirms it has now been removed from all currently supported versions of Windows 11. On Windows 10 the command still ships and still works — but it is living on borrowed time, which is one more reason to learn the PowerShell version.
While you have the window open, two slmgr (Software Licensing Management Tool) commands are worth running:
slmgr /dli
This displays your Windows edition, the license channel (Retail, OEM or Volume) and the last five characters of the product key currently in use. It never shows the full key — Microsoft designed it that way — but those five characters are enough to match the installed key against a sticker, box or email.
slmgr /xpr
This one answers a simpler question: whether the machine is permanently activated or running on a timed volume license.
Method 3: Find License Key Windows 10 Stores in the Registry
The registry — the system-wide settings database — holds licensing data in two places, and only one of them is readable by humans.
- Press Windows key + R, type
regeditand press Enter. - Navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
- Look for a value named
BackupProductKeyDefaultin the right-hand pane. - Double-click it to view the full 25-character key, then copy it into your records. Do not change anything else here.
On many systems this value holds a readable copy of the key the machine was activated with. It is a lookup, not a guarantee: if the key was changed after installation, the backup value can lag behind what is actually in use, so always cross-check its last five characters against slmgr /dli.
The second location is a value called DigitalProductId under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion. The key in there is binary-encoded, which is why third-party “key decoder” scripts exist. Treat decoded output with healthy suspicion — and note that a decoded registry key is not proof of purchase, no matter how official it looks on screen.
Method 4: Check the Sticker, Box or Purchase Email
Not every key lives inside the machine. Microsoft’s official Find your Windows product key page confirms the paper trail: boxed retail copies carry the key on a card or label inside the box, preinstalled machines may carry a Certificate of Authenticity (COA) sticker, and digital purchases deliver the key in the confirmation email or the retailer’s online account.
Places worth checking, in order of likelihood:
- The bottom of a laptop, inside the battery compartment, or the side or top of a desktop case (COA sticker, mostly pre-Windows 8 machines).
- The card inside the retail box, if you bought a physical copy.
- Your email archive — search for “product key”, “Windows 10” or the retailer’s name.
- Your account on the retailer’s website. Keys bought from Bcdkey, for example, stay available under My Account after purchase.
- Your Microsoft account order history, if you bought directly from the Microsoft Store.
For a tour of exactly where stickers hide on different hardware, see our guide to Where to Find the Product Key on Your Laptop or Box.
What If Every Method Comes Back Blank?
Usually that is normal, not a problem. If the firmware query is empty, the registry backup is missing and there is no sticker or email, your PC is almost certainly activated by a digital license — Microsoft’s keyless activation method introduced with Windows 10.
Digital licenses are everywhere because of history: every PC that took the free upgrade from Windows 7 or 8.1 received one, and so did upgrades bought through the Microsoft Store. Microsoft states that a digital license “doesn’t require you to enter a product key” — the activation record lives on Microsoft’s servers, tied to your hardware fingerprint.
Three practical consequences follow:
- You can reinstall Windows 10 on the same machine and skip every key prompt — it reactivates on its own once online.
- Linking the license to your Microsoft account (Settings > Update & Security > Activation) makes reactivation after a hardware change far smoother.
- No command, script or utility can print a key that was never issued. A blank result is not a failure — it is Windows telling you there was nothing to find.
How to Check That Windows 10 Is Actually Activated
Finding the key is only half the job; confirming the license is healthy is the other half. The check takes seconds:
- Open Settings (Windows key + I).
- Go to Update & Security > Activation.
- Read the status line. “Windows is activated with a digital license” or “Windows is activated” means all is well.
- For a second opinion, run
slmgr /xpr— a permanently activated machine says so plainly.
If you found a key and want to confirm it is genuine before relying on it — or before entering it on a new PC — our guide on How to Check if a Windows Product Key Is Valid covers the safe ways to test one. And if activation fails over the internet on an older machine, phone activation with a Confirmation ID still works; the Bcdkey Get Confirmation ID tool handles that step.
Does the Same Work on Windows 11?
Mostly, yes. The PowerShell command, the slmgr checks and the registry locations are identical on Windows 11. The exception is wmic: as covered above, Microsoft has removed it from all currently supported Windows 11 versions, so the CMD method in this guide is now effectively a Windows 10 method.
Windows 11 also leans even harder on digital licenses, so blank results are even more common there. For the cross-version picture, the broader guide to finding your Windows product key on Windows 11, 10 and 7 has you covered.
Windows 10 Support Is Ending: Why Your Key Matters Now
There is a reason to do this housekeeping today rather than someday. Windows 10 reached end of support on October 14, 2025; Microsoft’s consumer Extended Security Updates (ESU) program — a paid or opt-in bridge that delivers security patches only — now runs through October 12, 2027. Our guide to the Windows 10 ESU end date explains the enrollment options and what they cover.
Recording your license details now keeps every option open later:
- Staying on Windows 10 for a while: a recorded key makes reinstalls and repairs painless. If an older PC ever needs a fresh license, a Windows 10 Professional key from Bcdkey activates one PC — just remember the operating system itself no longer receives regular updates without ESU.
- Moving to Windows 11 on capable hardware: a Windows 11 Pro key activates one PC with the full Pro feature set (BitLocker, Remote Desktop host, Group Policy). If the license will live and die with a single machine, the Windows 11 Professional OEM key does the same job but stays bound to that hardware.
Need the full install walkthrough for a Windows 10 Pro license? See Bcdkey’s guide on how to download, install and activate Windows 10 Pro, and browse the wider Windows 11 range when you are planning the move.
Common Mistakes When Looking for a Windows 10 Key
1. Copying the Product ID Instead of the Product Key
The Product ID shown under Settings > System > About looks official but activates nothing. It is just your PC introducing itself; the real key is always 25 characters in five groups of five.
2. Assuming the Firmware Key Is the Key in Use
The OA3 firmware key is the key the PC shipped with. If the machine was later upgraded — say from Home to Pro — the active key is different, so always compare against the last five characters from slmgr /dli.
3. Treating a Registry Decode as Proof of Purchase
A decoded DigitalProductId proves only what the installer wrote, not that you own a valid license. Keep the purchase email or invoice; that is the document that matters in a dispute.
4. Downloading Key Finders from Unknown Sites
The built-in commands reveal everything that is actually stored on the machine. A downloaded utility can only repackage the same data, with a bonus risk of bundled malware.
5. Finding the Key and Saving It Nowhere
The most common mistake is the quietest one. A key you found once and never recorded will need finding again — usually at the worst possible moment, on a machine that no longer boots.
Keep a Record: Windows 10 License Checklist
Two minutes with this table saves a support ticket later:
| Item to record | Where to find it | Done |
|---|---|---|
| Full 25-character license key | PowerShell, CMD, registry, sticker or email | ☐ |
| Last five characters of the active key | slmgr /dli |
☐ |
| Edition and license channel (Retail/OEM/Volume) | slmgr /dli |
☐ |
| Activation status | Settings > Update & Security > Activation | ☐ |
| Digital license linked to Microsoft account | Activation page shows your account | ☐ |
| Purchase email or invoice saved | Email archive or retailer account | ☐ |
Final Recommendation
Knowing how to find license key Windows 10 relies on is not really about the commands. It is about never being locked out of your own license when a reinstall, a repair or a migration to Windows 11 comes around.
The simplest path: run the PowerShell command first, fall back to wmic or the registry if it comes up empty, and accept a fully blank result as what it usually is — a digital license doing its job invisibly.
With Windows 10 support winding down and consumer ESU ending on October 12, 2027, record whatever you find today and link your license to your Microsoft account while the system is healthy.
When you are ready to plan the next step, compare the Windows 10 and Windows 11 license range on Bcdkey.
FAQ About How to Find Windows 10 License Key (CMD, PowerShell, Registry)
How do I find my Windows 10 license key using CMD?
Run wmic path softwarelicensingservice get OA3xOriginalProductKey in an elevated Command Prompt. It returns the firmware-embedded key on PCs that shipped with Windows preinstalled; on other machines it returns a blank line.
Why does the OA3xOriginalProductKey command return nothing?
Normally, a blank result means no key is embedded in the firmware. Self-built PCs, retail-key installs and digital-license machines all return blank — the command is working correctly.
Does slmgr show the full Windows 10 product key?
No. slmgr /dli deliberately shows only the last five characters, which is enough to identify which key is active but never enough to reuse it elsewhere.
Where is the product key stored in the Windows 10 registry?
Check BackupProductKeyDefault under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform. A second, binary-encoded copy lives in the DigitalProductId value, but it needs decoding and is less trustworthy.
Is my Windows 10 license key stored in my Microsoft account?
No, not as a viewable key. Microsoft keeps order history for purchases made in the Microsoft Store, and a digital license can be linked to your account for reactivation, but the account never displays a full 25-character key for OEM or third-party retail purchases.
Do I need my license key to reinstall Windows 10?
Usually not on the same PC. Microsoft states that a machine with a digital license reactivates automatically after reinstalling — choose “I don’t have a product key” during setup and activation completes once you are online.
Can I use my Windows 10 key to activate Windows 11?
Yes, in most cases. A genuine Windows 10 retail or OEM key of the matching edition still activates the same edition of Windows 11 on hardware that meets the requirements, though Microsoft has signaled this courtesy will not last forever.
Is the firmware key always the key Windows 10 is currently using?
No. The firmware key is the one the manufacturer shipped; if the edition was upgraded or a new key was entered later, the active key differs. Compare the last five characters from slmgr /dli to tell them apart.
Can I find the license key if Windows 10 will not boot?
Sometimes. The firmware key survives a dead Windows install and can be read from the drive’s registry hive on another PC or by reinstalling and letting the firmware key apply automatically. A COA sticker or purchase email works regardless of the machine’s health.
Do these commands find Microsoft Office keys too?
No. Office stores its licensing separately, and the Windows commands in this guide will not reveal it. See the dedicated guide to finding your Microsoft Office product key instead.


