Read the Windows product key stored in your PC's firmware — via Microsoft Learn
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
- Run in an elevated PowerShell window.
- 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').OA3xOriginalProductKeyA 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
- Deploy Windows Enterprise licenses — by Microsoft Learn
- 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.