To find a Windows 11 Pro product key with Command Prompt, open Command Prompt and run powershell "(Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKey". If the PC came with Windows preinstalled, this prints the key stored in the firmware. A blank result means there is no firmware key, usually because Windows was activated with a retail key or a digital licence.
Can Command Prompt Show Your Windows 11 Pro Product Key?
Command Prompt can show your full product key only when the PC maker stored it in the firmware; it cannot read back a full retail key you typed in yourself. That limit comes from how Windows handles keys, and understanding it saves a lot of fruitless searching.
| How Windows was licensed | Can a command show the full key? | What you can see |
|---|---|---|
| Pre-built PC with Windows installed by the maker | Yes, the firmware (OEM) key | Full 25-character key via the command above |
| Retail key you entered | No | Last five characters with slmgr /dli
|
| Upgrade or reinstall with a digital licence | No key stored | Activation status in Settings and slmgr /xpr
|
| Work or school PC with volume licensing | No | Licence channel with slmgr /dli; the key is held by the organisation |
On pre-built PCs, the manufacturer injects an OEM key into a firmware table (the MSDM table) on the motherboard. Windows reads it during setup and activates automatically, which is why new laptops no longer carry a key sticker. Because the key lives in the firmware, it survives a disk wipe, and that is also why it is tied to that one machine. If you are new to how keys work, our guide What Is a Product Key? explains the background.
How Do You Find the Product Key with Command Prompt?
You find the firmware product key by calling PowerShell from Command Prompt, because the old WMIC command no longer exists on current Windows 11.
- Select Start, type cmd, and open Command Prompt. Administrator rights are not needed to read the key.
- Type or paste:
powershell "(Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKey" - Press Enter. If a firmware key exists, a 25-character key appears on the next line.
- Copy the key into a password manager or a note stored somewhere other than the PC itself.
If you prefer PowerShell or Terminal directly, run (Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKey without the powershell prefix and quotes.
Why Doesn't the WMIC Command Work Any More?
The older command, wmic path softwarelicensingservice get OA3xOriginalProductKey, fails because Microsoft has removed WMIC from Windows 11. Microsoft's deprecated features list was updated in August 2026 to say WMIC is removed and no longer available as a Feature on Demand on Windows 11 version 24H2 and above.
Only the command-line tool was removed. The underlying Windows Management Instrumentation (WMI) data is still there, which is why the PowerShell command above, which reads the same information, keeps working. Many older guides still quote the WMIC line, so if you see "'wmic' is not recognized", that is the reason.
What Does slmgr Show About Your Key?
The slmgr licensing script shows which licence channel you have, the last five characters of the installed key and whether Windows is permanently activated. Microsoft documents its options on the Slmgr.vbs options page.
- Open Command Prompt.
- Run
slmgr /dli. A Windows Script Host box shows the edition name, a description including the channel (for example RETAIL or OEM), a partial product key and the licence status. - Run
slmgr /xprto see whether the machine is permanently activated. - Run
slmgr /dlvif you want the detailed view, including the activation ID.
The partial key is useful for matching a key in an email with the one installed. Microsoft notes one exception: on PCs with an injected OEM key, the last five characters shown by slmgr /dli or /dlv are not necessarily those of the firmware key.
Why Does the Firmware Key Show Home Instead of Pro?
The firmware key shows the edition the PC was sold with, not the edition you run today. Many laptops ship with Windows 11 Home, and if you later upgraded to Pro, the firmware key is still a Home key.
This matters when you reinstall. Windows setup reads the firmware key and may install Home automatically. If your Pro upgrade was activated on that PC, Windows usually reactivates Pro through its digital licence once you install the Pro edition, but you may need to switch editions by entering your Pro key under Settings → System → Activation → Change product key. Our guide on upgrading Windows 11 Home to Pro covers the process.
How Do You Enter a Product Key with Command Prompt?
You install a product key from the command line with slmgr /ipk and then trigger online activation with slmgr /ato. Both need an elevated (administrator) Command Prompt.
- Select Start, type cmd, right-click Command Prompt and choose Run as administrator.
- Run
slmgr /ipkfollowed by a space and your 25-character key, including the hyphens. - Wait for the confirmation that the key was installed. Microsoft notes any existing key is replaced.
- Run
slmgr /atoto activate online. - Check the result with
slmgr /xpror under Settings → System → Activation.
Note that slmgr /ipk installs a key for the edition already running. To move from Home to Pro, use Change product key in Settings, which handles the edition upgrade.
A Common Mistake We See
A frequent mistake is taking the firmware key from an old laptop and trying to activate a new PC with it. An OEM key is licensed to the device it shipped with, so it will not legitimately activate different hardware, even though the command displays it happily. If you are building or replacing a PC, you need a new licence; our explainer on OEM vs retail Windows licences sets out which keys can move.
The other mistake is relying on the command as your only record. Save keys from your order emails when you buy them. Every key we sell is delivered instantly by email, so that email is your permanent record, and our support team can help if activation does not go through.
Frequently Asked Questions
How do I find my Windows 11 Pro product key using CMD?
Open Command Prompt and run powershell "(Get-CimInstance -ClassName SoftwareLicensingService).OA3xOriginalProductKey". If the PC shipped with Windows preinstalled, the firmware key appears. If nothing is returned, the PC has no firmware key, and the full key cannot be recovered by command. Check your purchase email instead.
Why does the command return nothing?
A blank result means no OEM key is stored in the firmware. That is normal for self-built PCs, PCs activated with a retail key, and machines upgraded with a digital licence. Run slmgr /xpr to confirm Windows is still activated; a missing firmware key does not mean the PC is unlicensed.
Can I see my retail product key in Command Prompt?
Only partly. slmgr /dli shows the last five characters and confirms the channel is Retail, which helps you match it with an email. Windows does not display a full retail key in readable form, so your order confirmation remains the authoritative record.
Does wmic still work in Windows 11?
Not on current versions. Microsoft states WMIC has been removed and is no longer available as a Feature on Demand on Windows 11 version 24H2 and above. Use PowerShell's Get-CimInstance cmdlet instead, which reads the same Windows Management Instrumentation data and can be launched from Command Prompt.
Is the key in my BIOS for Windows 11 Home or Pro?
It matches the edition the PC was sold with, which is usually Home on consumer laptops and often Pro on business models. The command shows only the key, not its edition, so check the original specification or packaging. slmgr /dli shows which edition is installed now, which may differ if you upgraded.
Conclusion
Finding a Windows 11 Pro product key with Command Prompt works when the key is in the firmware: run the PowerShell command from cmd and copy the result. For retail keys and digital licences, use slmgr /dli and your order email instead. If you need a key for a new build, get a genuine Windows 11 Pro product key or browse our Windows 11 collection.
Useful Links
| Resource | Link |
|---|---|
| Windows 11 Pro product key | Buy Windows 11 Pro |
| Windows 11 product keys | Shop Windows 11 |
| Product keys explained | What Is a Product Key? |
| Home to Pro upgrade | Upgrade Windows 11 Home to Pro |
| Slmgr.vbs options (Microsoft) | Microsoft Learn |
| Deprecated features incl. WMIC (Microsoft) | Microsoft Learn |
Leave a comment