How to Reveal Windows Product Key with Command Prompt or PowerShell Commands
In this guide, 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:
Your Windows product key will be displayed.
Open a PowerShell windows with administrative privileges, type the following command and hit Enter:
Your Windows licence key will appear! This will work on Windows 10 / 8.1 / 7 / Vista.
In Windows 10, the product key will probably be encrypted, tied to your Microsoft Account and stored by Microsoft in the cloud too.
Open an elevated command prompt window, type the following command and hit Enter:
Code:
wmic path softwarelicensingservice get OA3xOriginalProductKey
Your Windows product key will be displayed.
Open a PowerShell windows with administrative privileges, type the following command and hit Enter:
Code:
powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey"
Your Windows licence key will appear! This will work on Windows 10 / 8.1 / 7 / Vista.
In Windows 10, the product key will probably be encrypted, tied to your Microsoft Account and stored by Microsoft in the cloud too.