There are times when you may want to recover your Windows product key from a working Windows installation, whether to back up the product key before beginning to install a newer version of Windows, or to reinstall existing version of Windows operating system.

The standard or the popular way of retrieving Windows product key is to use a third-party software such as License Crawler or use a free Windows product key recovery CD to recover the product key from unbootable PCs.

While there are plenty of free tools available for this job, the fact is that one can recover Windows product key from registry without having to use third-party tools.

Out friend at WinAero has posted a helpful guide on recovering Windows product key without using third-party tools. The only thing is that your PC must be bootable to recover the product key using this method. And if your PC is unbootable, follow our how to recover Windows 7/8/8/8.1 product key from unbootable PC guide.

NOTE: This method works in all recent versions of Windows, including Windows 7, Windows 8, and Windows 8.1.

Step 1: Copy the following code and paste it into Notepad. Save the file as RecoverKey.ps1 on your desktop. Note that it’s important to save the file with .ps1 extension.

Step 2: Open Windows PowerShell as administrator. To do this, you can type Windows PowerShell in the Start menu (Windows 7) or Start screen (Windows 8/8.1), and then simultaneously press Ctrl + Shift + Enter keys.

Alternatively, you can right-click on the Windows 8.1 Start button and then click Windows PowerShell (Admin) to launch PowerShell as administrator.

Click on the Yes button when you see the User Account Control (UAC) dialog.

Step 3: In the PowerShell window, type the following code (or you can simply copy and paste) and press Enter key to change the execution policy for non-signed scripts.

Set-ExecutionPolicy RemoteSigned

Click Enter key or ‘Y’ key when you see “Do you want to change the execution policy” message.

Step 4: Finally, type the following command and then press Enter key to view your Windows product key. That’s it!

Import-Module C:\Users\PC\Desktop\RecoverKey.ps1; Get-WindowsKey

In the above command, replace “C:\Users\PC\Desktop\RecoverKey.ps1” with the path to the previously saved RecoverKey.ps1 file. To easily get the path, press and hold down the Shift key, right-click on RecoverKey.ps1 file, and then click Copy as path option.

Good luck!