It is easy to solve the problem with MS Windows OS to read / display license key via command line!If you want to reinstall your Windows 10 or 11, it is possible that at some point you will not be able to proceed due to the Windows product key that you have lost. With a few simple methods, such as PowerShell, command prompt and / or Windows registry, you can easily find out and store the Windows 11, 10, 8.1, ... as well as MS-Server 2022, 2019, 2016, ... the product key.
Contents: 1.) ... How to find out the Windows license key with PowerShell!
|
(Image-1) Read out the Windows 10, 8.1, 7 license key via the command line! |
![]() |
Info:
When you buy a new PC, it is pre-activated. You may not need to open your command prompt or play with the Windows registry. Your Windows key might be right in front of you on a Certificate of Authority (COA) sticker on your computer or in the original packaging. If you bought your PC from an authorized Microsoft reseller, you will need to find the Windows product key on a label inside the PC box.

2.) The Windows product key using the command prompt!
1. Start the command prompt as administrator
2. Now enter the following command in the command prompt and press Enter:
wmic path softwarelicensingservice get OA3xOriginalProductKey
2. Now enter the following command in the command prompt and press Enter:
wmic path softwarelicensingservice get OA3xOriginalProductKey
(Image-2) Read out the Windows product key via the cmd.exe command line! |
![]() |
This method of recovering Windows Product Key using CMD is very simple. All you need to do is open a command prompt window with administrator rights. To do this, search for cmd in the Windows search bar and right click to select the elevated permissions option.

FAQ 73: Updated on: 26 August 2023 10:44