How to find the Windows product key at the command prompt or in PowerShell



Updated October 2024: Stop getting error messages and slow down your system with our optimization tool. Get it now at this link
  1. Download and install the repair tool here.
  2. Let it scan your computer.
  3. The tool will then repair your computer.

When you enter, save and activate your copy of Windows using a retail key, the information is stored in the Windows registry. OEM computer users may have noticed that for several years now, manufacturers have not affixed their certificate of authenticity or certificate of authenticity label that displays the Windows product key on the device. This key is now integrated into the BIOS/UEFI.

Find Windows product key

Note that a retail product license is linked to the person, while the OEM product key is linked to the machine under the terms of the Microsoft Windows Desktop license. This article shows how to find the original Windows product key using the BIOS or registry command or PowerShell prompt. It also works for retail and OEM licenses.

Restore the Windows product key using the command prompt

October 2024 Update:

You can now prevent PC problems by using this tool, such as protecting you against file loss and malware. Additionally, it is a great way to optimize your computer for maximum performance. The program fixes common errors that might occur on Windows systems with ease - no need for hours of troubleshooting when you have the perfect solution at your fingertips:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.

Download Now

In the Windows 10 / 8.1 WinX menu, open a high input window, type the following command and press Enter:

 Return OA3xOriginalProductKey

Your Windows product key is displayed.

Get the Windows license key with PowerShell

Open a PowerShell window with administrator privileges, type the following command and press Enter:

Your Windows license key appears ! This works under Windows 10/ 8.1/7/Vista.

Under Windows 10, the product key can be encrypted, linked to your Microsoft account and also stored by Microsoft in the cloud.

You can also find Windows 10 product keys with VB Script.

If you are looking for an easier way, you can also use a free Software Key Finder to restore and backup not only Windows, but also Office, software, game sets and license keys.

This article helps you if you want to uninstall the Windows product key.



Expert Tip: This repair tool scans the repositories and replaces corrupt or missing files if none of these methods have worked. It works well in most cases where the problem is due to system corruption. This tool will also optimize your system to maximize performance. It can be downloaded by Clicking Here

Related Video

Scroll to Top