How to find Windows Product Key using Command Prompt or PowerShell

Statut
N'est pas ouverte pour d'autres réponses.

Xavier Mustin

Administrator
Staff member
#1
When you enter, register and activate your copy of Windows, using a Retail key, the information is stored in the Windows Registry. Users of OEM computers may have noticed that, since a couple of years, the manufacturers have stopped pasting their COA or Certificate of Authenticity sticker, which displayed the Windows product key to the machine anymore. Now this key is embedded in the BIOS/UEFI.

Find Windows Product Key
It is to be noted that a Retail product license is tied to the person whereas the OEM product key is tied to the machine, as per Microsoft Windows Desktop licensing terms. In this post, we will see how to find the original Windows Product Key using Command Prompt or PowerShell, from BIOS or Registry. It works for Retail & OEM licenses too.

Recover Windows product key using Command Prompt


From the WinX Menu in Windows 10 / 8.1, 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.


Get Windows License Key using PowerShell
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.

If this does not work for you, you can also use some free Software Key Finders to recover and save, not just Windows, but even Office, Software, Games serials and license keys.
 
Statut
N'est pas ouverte pour d'autres réponses.
Haut