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.
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.
Press:
Win + X
Then choose:
Windows Terminal / PowerShell / Command Prompt
Administrator privileges are recommended but not strictly required.
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.
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.
You can verify activation using:
slmgr /xpr
Expected output:
The machine is permanently activated
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
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.
wmic path softwarelicensingservice get OA3xOriginalProductKey
Retrieve the key → paste it into Settings → Activation → Change product key.