If you lost or forgot where you had stored your Windows product key, here is a solution for you. Today we will see how to retrieve the product key in an installed copy of Windows 10, Windows 8 or Windows 7 with a single command. It is a simple solution to extract your product key from the OS installed on your PC without using any third party software. Here we go.
Retrieve the product key in Windows 10, Windows 8 and Windows 7
You need to open a new command prompt instance and run the command as described below.
- Open a new command prompt window.
- Type the following command:
wmic path softwarelicensingservice get OA3xOriginalProductKey
It will immediately show you the product key.
That's it. If this command fails for you or you need a VBScript to retrieve the product key, then refer to this article: How to view your product key in Windows 10, Windows 8 and Windows 7.
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options: