Skip to content

Read the Windows product key stored in your PC's firmware — via Microsoft Learn

Commandlow riskNeeds adminWindows 11Windows 10

Most PCs that came with Windows have the key embedded in the UEFI firmware (OA3), and Windows activates from it automatically when you reinstall the same edition. One PowerShell line reads that key, for example to check which edition it belongs to.

Takes effect right away

The easy way

  1. Run in an elevated PowerShell window.
  2. If nothing is printed, the firmware holds no key (common on self-built PCs or volume-licensed machines).

Command

Run in an administrator PowerShell / Terminal window.

(Get-CimInstance -Query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
A product key is a secret. Don't post it in forums or screenshots. Older guides use wmic path softwarelicensingservice, but WMIC has now been removed from Windows 11 (see the WMIC entry).

Sources

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.

product keyoa3firmwareactivationpowershellreinstall

More in Setup & Install