Quick fix: Open Command Prompt (Admin). Run: wmic path softwarelicensingservice get OA3xOriginalProductKey. The output is your OEM product key stored in BIOS/UEFI. Or use PowerShell: (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey. If empty: PC doesn’t have OEM key in firmware (manual installs and resale PCs may not).
OEM PCs from Dell, HP, Lenovo, etc. ship with a Windows product key stored in the UEFI firmware. Windows reads this automatically on install/reinstall. To save the key for records or transfer to a new install, extract via WMI.
Affects: Windows 11 (and Windows 10) on OEM PCs.
Fix time: ~3 minutes.
What causes this need
OEM PCs (Dell, HP, Lenovo, ASUS, Acer, MSI etc.) have a Windows OEM key embedded in UEFI firmware (the “DSDT” / SLP key). Windows reads this on install and activates automatically — no key prompt. Useful to know the key if:
- Reinstalling Windows from scratch.
- Transferring the license to a virtual machine (where firmware key isn’t available).
- Selling the PC and wanting records.
- Confirming the OS edition (Home vs Pro).
Method 1: Retrieve via Command Prompt
The standard route.
- Open Command Prompt (Admin).
- Run:
wmic path softwarelicensingservice get OA3xOriginalProductKey - Output: shows a 25-character product key (XXXXX-XXXXX-XXXXX-XXXXX-XXXXX).
- If output is empty: PC has no OEM key in firmware. Could be:
- Manual Windows install on hardware without OEM key.
- Self-built PC with retail license.
- VM or specific hardware variant.
- Save the key to a text file or password manager.
- This is the OEM key — not the same as the “digital license” tied to your Microsoft account. Both can activate Windows; they’re separate concepts.
This is the standard retrieval.
Method 2: Retrieve via PowerShell
For scripting.
- Open PowerShell (Admin).
- Run:
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey - Or with the newer CIM cmdlet:
(Get-CimInstance -Class SoftwareLicensingService).OA3xOriginalProductKey - Output: same 25-character key.
- For saving to file:
$key = (Get-CimInstance -Class SoftwareLicensingService).OA3xOriginalProductKey $key | Out-File C:\Backup\Win11_OEM_Key.txt - For checking activation status:
slmgr /xprShows activation expiration (Permanent for full activation).
- For detailed license info:
slmgr /dlvShows full license details: edition, channel, key partial.
This is the PowerShell flavor.
Method 3: Use a third-party tool for legacy or fallback
For when WMI commands return blank.
- Some old retail keys or generic keys aren’t exposed via OA3xOriginalProductKey. Try:
- ShowKeyPlus (Microsoft Store, free) — shows both OEM and installed keys.
- NirSoft ProduKey (free) — lightweight key viewer.
- Magical Jelly Bean Keyfinder — older but reliable.
- Download from official source. Some Windows Defender flags key-extraction tools as potentially-unwanted — allow if from trusted source.
- ShowKeyPlus shows: Installed Key (what Windows uses now), OEM Key (firmware), and Product Edition.
- For Microsoft Office key: same tools usually retrieve Office keys too.
- For VMs: VM firmware doesn’t include OEM key. Windows activates via Microsoft account digital license or KMS for corporate VMs.
- For Windows 11 24H2+: Microsoft is gradually moving toward digital-license-only activation. OEM key may be phased out for new PCs.
This is the fallback.
How to verify the fix worked
- Command returns a 25-character key, e.g.,
VK7JG-NPHTM-C97JM-9MPGT-3V66T. - Key has 5 groups of 5 alphanumeric characters separated by hyphens.
slmgr /xprconfirms Windows is activated.
If none of these work
If key is empty: Not an OEM machine: self-built or upgraded. No firmware key. Hardware change: motherboard replacement clears the firmware key. UEFI / Legacy BIOS: very old PCs in Legacy BIOS mode may not store the key. Switch to UEFI in BIOS (warning: requires drive conversion to GPT). For digital license: slmgr /dlv shows the digital license is active. Activation is by Microsoft account, not key. For volume license keys (corporate): keys aren’t exposed via WMI. Contact IT for the actual key. Last resort — activate fresh install: skip the “Enter key” prompt during install. Windows activates via Microsoft account login or via the embedded firmware key automatically.
Bottom line: wmic path softwarelicensingservice get OA3xOriginalProductKey in Admin Command Prompt. ShowKeyPlus (free Store app) for OEM and current key. Save for records before reinstall.