wmic path softwarelicensingservice get OA3xOriginalProductKey

The process utilizes the Windows Script Host to communicate with Microsoft’s licensing servers or a local Key Management Service (KMS).

He typed: slmgr /ato

Elias stared. It was the BIOS-embedded key. The machine had actually kept the license in the firmware, but the OS was too confused to see it after the hardware swap.

(Activate Windows)