To find a Windows product key, open PowerShell and run (Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKey. That returns the key embedded in your PC's firmware by the manufacturer. If it returns nothing, check your purchase email, the COA sticker or your Microsoft account. The registry only stores an encoded copy of the key, and many PCs now activate with a digital licence and have no key you need to keep.
Written by the Softkeyworld technical team · Updated October 2026
People usually go looking for their Windows product key at a bad moment: a motherboard has died, a reinstall is due, or a new drive is going in. In our support inbox the question is rarely "where is the key?" so much as "which key is this, and will it work?" Windows keeps several licence-related values that look like product keys but are not, and older guides make it worse by recommending downloaded "key finder" programs of unknown origin.
This guide sticks to what Windows itself can tell you, using built-in commands, the registry (read correctly) and the firmware on OEM machines. It also covers what to do when there's simply no key to find.
First: do you actually need the key?
Since Windows 10, many PCs activate with a digital licence instead of a key you type in. Microsoft's own product key guidance describes a digital licence as a method of activation in Windows 10 and Windows 11 that doesn't require you to enter a product key. Free upgrades from Windows 7/8.1 and Pro upgrades bought through the Microsoft Store app work this way.
To check which you have, go to Settings > System > Activation and expand Activation state. You'll see something like:
- "Windows is activated with a digital license linked to your Microsoft account": reinstalling the same edition on the same hardware and signing in with that account will reactivate. You don't need a key.
- "Windows is activated with a digital license" (no account link): the activation is stored against the hardware. Sign in with a Microsoft account now, while the PC is working, so the licence is linked before you need it.
- "Windows is activated" with no mention of a digital licence: the PC was most likely activated with a product key you entered (retail or volume). Keep that key safe.
If you're replacing components rather than reinstalling, the steps in our guide to Windows activation after a hardware change will matter more than recovering the key itself.
Key takeaways
- The PowerShell
OA3xOriginalProductKeyquery reads the OEM key from firmware. It is blank on retail, self-built and upgraded PCs. -
slmgr /dlishows only the last five characters of the installed key. That's enough to match it against an email or sticker. - The "Product ID" in Settings > System > About is not your product key.
- The registry holds the key in encoded binary form (
DigitalProductId), not plain text.
Method 1: Read the OEM key from firmware with PowerShell
Most laptops and desktops sold with Windows 8 or later don't have a key printed on a sticker. The manufacturer writes the key into a firmware table (the ACPI MSDM table), and Windows Setup reads it automatically during installation. This is the key people mean when they say "the key is in the BIOS". You won't find it on a BIOS setup screen, though. Windows reads it through the Software Licensing service.
- Right-click the Start button and choose Terminal (or Windows PowerShell on Windows 10).
- Run:
(Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKey - If a 25-character key appears (five groups of five), that's the factory key. Note it down along with the edition it belongs to (see below).
- To see the edition and description stored alongside it, run:
(Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKeyDescription
You don't need to run these as administrator. A blank result simply means no firmware key exists. That's normal for self-built PCs, machines activated with a retail key, and most PCs that were upgraded rather than shipped with Windows.
The edition trap with firmware keys
The firmware key matches whatever edition the PC shipped with, which for consumer laptops is usually Home. If you later upgraded that machine to Pro, the firmware still holds the Home key. A clean install will then pick Home automatically, and you'll need your Pro upgrade key or a Pro digital licence to move back up. This is the single most common reason we see for "my PC reinstalled as the wrong edition". If you're deciding whether that upgrade is worth doing at all, our Windows 11 Home vs Pro comparison lays out the practical differences.
What about the old WMIC command?
Many older guides give wmic path SoftwareLicensingService get OA3xOriginalProductKey. It queries the same property, but WMIC has been deprecated for years. Microsoft turned it into an optional feature in Windows 11 22H2 and has been removing it from current Windows 11 releases (see Microsoft's WMIC removal notice). If you get "'wmic' is not recognized as an internal or external command", nothing is wrong with your licence. Use the PowerShell command above instead.
Method 2: Check the installed key with slmgr (last five characters)
The firmware query tells you what the manufacturer supplied. It doesn't tell you which key Windows is using now. For that, use the Software Licensing Management Tool, which ships with every edition of Windows:
- Open Command Prompt or Terminal.
- Run
slmgr /dli. After a few seconds, a Windows Script Host dialog shows the edition name, the licence channel description (for example RETAIL channel, OEM_DM channel or VOLUME_MAK channel), the partial product key and the licence status. - For more detail, including the activation ID and remaining rearm count, run
slmgr /dlv.
Windows deliberately shows only the last five characters. That sounds unhelpful, but it's usually all you need. Match those five characters against the keys in your order emails, on stickers or in your notes, and you'll know which one is installed. Microsoft documents every switch in its slmgr.vbs options reference.
The channel line is useful too. OEM, retail and volume keys have different transfer rights, so knowing the channel tells you what you can do with the licence later. Our explainer on OEM vs retail vs volume licence keys goes through each one.
Method 3: What the registry really stores
Search for "find Windows product key in registry" and you'll be told the key is sitting in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion. That's partly true, and the details matter:
| Registry value | What it actually is | Is it your key? |
|---|---|---|
ProductId |
The Product ID (e.g. 00330-8xxxx-xxxxx-AAOEM), also shown in Settings > System > About | No. It identifies the installation and can't be used to activate |
DigitalProductId / DigitalProductId4
|
REG_BINARY data containing licence information in an encoded format | Encoded, not readable as text. On digital-licence installs it may not correspond to a usable key |
BackupProductKeyDefault (under ...\CurrentVersion\SoftwareProtectionPlatform) |
Plain-text key used by the licensing platform | Often a generic installation key that installs an edition but doesn't activate it. Don't treat it as proof of purchase |
Two practical points come out of this. First, the "Product ID" that people copy from the About page and send to support is not a key and can't activate anything. Second, because DigitalProductId is encoded binary, "reading the key from the registry" really means running a decoding script or program over it. That's exactly what third-party key finders do.
Why we don't recommend third-party key finders
Decoding scripts and "key finder" downloads are a well-worn route for adware and credential-stealing malware. Even the legitimate ones have limits: on a PC activated by digital licence they often return a generic key, which leads people to believe they have a key they can reuse when they don't. You'd be running unknown code with administrator rights for a result the built-in tools give you more reliably. Stick to the PowerShell firmware query and slmgr, and back them up with your purchase records.
Method 4: Physical labels, emails and your Microsoft account
When a key was bought rather than built in, the purchase record is the most reliable source of the full 25 characters.
- Certificate of Authenticity (COA) sticker: on Windows 7-era PCs it's usually on the case or under the battery. Many Windows 10/11 PCs carry a "Genuine Microsoft" label without a key. That's expected, because the key is in firmware.
- Retail box: a card or label inside the packaging.
- Order confirmation email: search your inbox for "product key", the edition name, or the seller's name. Digital keys bought from us arrive by email, so the original delivery email is the copy to keep.
- Microsoft account order history: purchases made directly from Microsoft appear under Order history at account.microsoft.com. Store-app upgrades usually show as a digital licence rather than a key.
Which method should you use? A quick comparison
| Situation | Best method | What you'll get |
|---|---|---|
| Branded laptop/desktop that shipped with Windows 8, 10 or 11 | PowerShell OA3xOriginalProductKey
|
Full factory key (usually Home or Pro, matching the original edition) |
| Self-built PC with a bought key | Purchase email + slmgr /dli to confirm |
Full key from email; last five characters to match |
| Free upgrade from Windows 7/8.1 or Store-bought Pro upgrade | Settings > System > Activation | Confirmation of a digital licence; there is no key to recover |
| Work PC |
slmgr /dlv, then ask IT |
Usually a volume (KMS/MAK) or subscription activation managed by the organisation |
| PC won't boot | Purchase records; firmware key is read again automatically on reinstall | Reinstalling the factory edition activates without typing a key |
Finding the key when Windows won't boot
If the PC still powers on but Windows won't load, you often don't need the key at all. On an OEM machine, Windows Setup reads the firmware key during a fresh install of the matching edition and activates once you're online. On a digital-licence machine, activation is restored when Windows contacts Microsoft's activation servers from the same hardware.
You can't easily read the firmware key from a broken installation. The Windows Setup environment on standard installation media doesn't include PowerShell, so the command above won't run there. In practice that's rarely a problem. Setup detects the firmware key on its own and installs the matching edition without asking for a key. If you want a written copy for your records, run the PowerShell query once Windows is back up, and store the result somewhere off the PC.
When the key was retail and the drive has failed, the only copy is wherever you recorded it: the order email, a box or your password manager. That's why we always suggest saving a copy of digital keys at the moment of purchase.
What about Office product keys?
Office keys are separate from Windows keys, and none of the commands above will show them. For Office 2019, 2021 and 2024 retail versions that were redeemed to a Microsoft account, the installation is tied to that account and you reinstall from it. For volume-licensed Office (Professional Plus), run cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus from an administrator prompt. Like slmgr, it shows only the last five characters. If you're unsure whether a copy is properly licensed in the first place, follow our guide to checking whether Windows and Office are genuine.
If you can't find a valid key
Sometimes every method comes back empty. Typical cases are a self-built PC where the original email is long gone, a second-hand machine with no history, or a PC moved from Home to Pro by someone else. In those cases:
- Run the Activation troubleshooter (Settings > System > Activation > Troubleshoot) while signed in with your Microsoft account. If a digital licence exists for this hardware, it will often find it.
- If you get an activation error code, look it up before buying anything. Errors such as 0xC004F074 are often configuration problems rather than missing licences (see our activation error fixes).
- If there's genuinely no licence for the edition you're running, a new key is the legitimate fix. Avoid "activator" tools and KMS scripts. They breach the licence terms and are a common source of malware.
Frequently asked questions
Is the Windows product key stored in the BIOS?
On most branded PCs that shipped with Windows 8 or later, yes. It's held in a firmware (ACPI) table, not shown on a BIOS menu. Read it with (Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKey in PowerShell.
Why does the PowerShell command return nothing?
There's no OEM key in firmware. That's normal for self-built PCs, retail activations and most upgraded machines. Check slmgr /dli and your purchase records instead.
Is the Product ID the same as the product key?
No. The Product ID (shown in Settings > System > About) identifies the installation and can't be used to activate Windows. A product key is 25 characters in five groups of five.
Can I see my full key in the registry?
Not as plain text. DigitalProductId is encoded binary, and the plain-text BackupProductKeyDefault value is often a generic installation key rather than the one you bought.
Do I need my product key to reinstall Windows 11?
Usually not. If the PC has a digital licence or a firmware key, choose "I don't have a product key" during setup, install the same edition, and Windows activates once it's online.
Can I move my key to a new PC?
Retail keys generally can be moved. OEM keys are tied to the original device. Our guide to moving a Windows or Office licence to a new PC covers the steps.
Our recommendation
Start with the PowerShell firmware query, confirm what's installed with slmgr /dli, and link the licence to your Microsoft account while the PC still works. Skip the key-finder downloads. If you've confirmed there's no valid licence for the edition you need, a genuine retail key is the clean fix, and it arrives by email so you'll always have a copy. Our support team at support@softkeyworld.com can help you check which edition you need.
Get a Genuine Windows 11 Pro Licence Key
Related reading
| Resource | Why read it |
|---|---|
| OEM vs retail vs volume licence keys | Understand the channel slmgr reports and what it lets you do |
| Windows activation after a hardware change | Reactivate after a motherboard or drive swap |
| Check if Windows and Office are genuine | Verify a licence before you rely on it |
| Move a licence to a new PC | Transfer a retail key the right way |