Friday, 13 January 2017

Use Command Prompt or PowerShell to find Windows Product Key

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

aBvNtkD.png

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"

ZynbP0t.png

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.

No comments: