Use Command Prompt or PowerShell to find Windows Product Key
In this post, i will show you how to find the original Windows Product Key using Command Prompt or PowerShell, from BIOS or Registry. It works for Retail & OEM licenses too.
Open an elevated Command Prompt window, type the following command and hit Enter:
wmic path softwarelicensingservice get OA3xOriginalProductKey
Your Windows product key will be displayed.
Open an elevated PowerShell prompt window, type the following command and hit Enter:
powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey"
Your Windows license key will appear! This will work on Windows 10 / 8 / 8.1 PC.
In Windows 10, the product key will probably be encrypted, tied to your Microsoft Account and stored by Microsoft in the cloud too.
Edited by FreeBooter, 12 June 2016 - 07:45 AM.