Skip to content

Instantly share code, notes, and snippets.

@Elvmeen
Created March 6, 2026 20:35
Show Gist options
  • Select an option

  • Save Elvmeen/3fcdf40c8949639f765bf40593cfd92c to your computer and use it in GitHub Desktop.

Select an option

Save Elvmeen/3fcdf40c8949639f765bf40593cfd92c to your computer and use it in GitHub Desktop.

Below is a clean technical note you can store in a GitHub Gist. It documents the legitimate method you actually used, not the activation scripts.


Recover and Activate Windows Using the OEM Key Stored in BIOS

This method retrieves the original Windows license embedded in the motherboard firmware (UEFI) and activates Windows without reinstalling the OS.

Modern laptops usually ship with an OEM digital license stored in firmware. Even if Windows activation breaks or the system edition changes, the key can be recovered and reused.

Step 1 — Open Command Prompt or PowerShell

Press:

Win + X

Then choose:

Windows Terminal / PowerShell / Command Prompt

Administrator privileges are recommended but not strictly required.


Step 2 — Retrieve the Embedded OEM Key

Run:

wmic path softwarelicensingservice get OA3xOriginalProductKey

Example output:

OA3xOriginalProductKey
XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

The returned key is the OEM product key stored in UEFI firmware.

If the output is blank, the device likely does not contain an embedded license.


Step 3 — Apply the Key

Open Windows activation settings.

Settings → System → Activation

Click:

Change product key

Paste the retrieved key.

Windows will then contact Microsoft activation servers and activate the system.


Step 4 — Verify Activation Status

You can verify activation using:

slmgr /xpr

Expected output:

The machine is permanently activated

Why This Works

Manufacturers embed the Windows license inside the motherboard firmware using the OA3 (OEM Activation 3.0) mechanism.

The command used earlier queries the firmware table and retrieves that key.

Properties of this license:

• stored in UEFI firmware • tied to the motherboard • survives OS reinstallations • activates automatically with the correct Windows edition


Notes

If activation fails, the most common reason is a Windows edition mismatch.

Example:

Device license: Windows Home Installed OS: Windows Pro

In that case Windows must be switched to the correct edition or upgraded with a Pro license.


One-Command Version

wmic path softwarelicensingservice get OA3xOriginalProductKey

Retrieve the key → paste it into Settings → Activation → Change product key.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment