Find the Windows product key using CMD or PowerShell [SIMPLE GUIDE]

Vlad Turiceanu
by Vlad Turiceanu
Editor-in-Chief
Passionate about technology, Windows, and everything that has a power button, he spent most of his time developing new skills and learning more about the tech world. Coming from a solid background in PC... Read more
Affiliate Disclosure
Find Windows Product Key using CMD or PowerShell
To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

  • In this article, we are going to show you can to find your Windows Key
  • The fastest way that this can be done with no technical knowledge required is via CMD or PowerShell

If you’re planning to reinstall Windows, you’ll need your activation key to activate it again, and in this article we’ll show you how to find Windows product key using cmd or PowerShell.

You can find your key on your PC sticker, but that’s not always the case, especially if you have built your own PC or bought it without the operating system. The process of finding the product key is simple and it will take you less than 2 minutes. Without further ado, let’s get started.

How to find the product key on Windows 10?

1. Retrieve the product key in CMD

  1. In the Windows search box type cmd, right-click the result and choose Run as administrator. If you can’t start Command Prompt as administrator, check out our guide on how to fix it.run as administrator cmd find windows product key
  2. In the cmd window, type
     wmic  path softwarelicensingservice get OA3xOriginalProductKey 

    and hit Enter.

  3. Your Windows product key will show up. It’s in the form of XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.

Did you know that you can transfer your Windows license to another PC? Read on to find out how!



2. Retrieve the product key in PowerShell

    1. Right-click on Start and click on Windows PowerShell (Admin).start powershell admin find windows product key in powershell
    2. In the PowerShell window, type
       powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey"

      and hit Enter.

    3. Your Windows product key will shortly appear.

That’s it. Now you can change your computer, reinstall the Windows or activate it with your Product key.

In the same way, you may find the key on a sticker on your PC or even in an email from Microsoft, if you bought the license from the Microsoft store.

These simple methods work every time and will certainly work for you. Just follow the steps and you’ll get your product key in no time.

If you have any other questions regarding the Windows product key, don’t hesitate to leave them in the comments section below.

Related articles:

idee restoro Still having issues? Fix them with this tool:
  1. Download this PC Repair Tool rated Great on TrustPilot.com (download starts on this page).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).

Restoro has been downloaded by 0 readers this month.

This article covers:Topics: