How to Retrieve OEM Product Key From a Pre-Installed Windows 11 PC
🔍 WiseChecker

How to Retrieve OEM Product Key From a Pre-Installed Windows 11 PC

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.

Symptom: Want to retrieve the OEM-embedded Windows 11 product key from BIOS/UEFI.
Affects: Windows 11 (and Windows 10) on OEM PCs.
Fix time: ~3 minutes.

ADVERTISEMENT

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.

  1. Open Command Prompt (Admin).
  2. Run:
    wmic path softwarelicensingservice get OA3xOriginalProductKey
  3. Output: shows a 25-character product key (XXXXX-XXXXX-XXXXX-XXXXX-XXXXX).
  4. 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.
  5. Save the key to a text file or password manager.
  6. 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.

ADVERTISEMENT

Method 2: Retrieve via PowerShell

For scripting.

  1. Open PowerShell (Admin).
  2. Run:
    (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
  3. Or with the newer CIM cmdlet:
    (Get-CimInstance -Class SoftwareLicensingService).OA3xOriginalProductKey
  4. Output: same 25-character key.
  5. For saving to file:
    $key = (Get-CimInstance -Class SoftwareLicensingService).OA3xOriginalProductKey
    $key | Out-File C:\Backup\Win11_OEM_Key.txt
  6. For checking activation status:
    slmgr /xpr

    Shows activation expiration (Permanent for full activation).

  7. For detailed license info:
    slmgr /dlv

    Shows 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.

  1. 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.
  2. Download from official source. Some Windows Defender flags key-extraction tools as potentially-unwanted — allow if from trusted source.
  3. ShowKeyPlus shows: Installed Key (what Windows uses now), OEM Key (firmware), and Product Edition.
  4. For Microsoft Office key: same tools usually retrieve Office keys too.
  5. For VMs: VM firmware doesn’t include OEM key. Windows activates via Microsoft account digital license or KMS for corporate VMs.
  6. 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 /xpr confirms 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.

ADVERTISEMENT