In case you forgot which one it is License code of your system Windows and you want to do it RESETTLEMENT (or you want to make one backup of him for any eventuality), it is not necessarily necessary to refer to Third-Party applications to find out which one it is. If you use a Windows system relatively recently (Windows 7, Windows 8 or Windows 8.1) you can retrieve the license code of his from System Register using the following instructions.
How can we recover the license code of a Windows operating system from system registries (without using third-party applications)?

- give Copy/Paste the following code in one Notepad, then save the file to desktop with the name RecoverKey.ps1 (it is mandatory that file extension newly created to be .ps1)
function Get-WindowsKey {
## function to retrieve the Windows Product Key from any PC
## by Jakob Bindslet ([email protected])
param ($targets = “.”)
$hklm = 2147483650
$regPath = “SoftwareMicrosoftWindows NTCurrentVersion”
$regValue = “DigitalProductId”
Foreach ($target in $targets) {
$productKey = $null
$win32os = $null
$wmi = [WMIClass]“\$targetrootdefault:stdRegProv”
$data = $wmi.GetBinaryValue($hklm,$regPath,$regValue)
$binArray = ($data.uValue)[52..66]
$charsArray = “B”,”C”,”D”,”F”,”G”,”H”,”J”,”K”,”M”,”P”,”Q”,”R”,”T”,”V”,”W”,”X”,”Y”,”2″,”3″,”4″,”6″,”7″,”8″,”9″
## decrypt base24 encoded binary data
For ($i = 24; $i -ge 0; $i–) {
$k = 0
For ($j = 14; $j -ge 0; $j–) {
$k = $k * 256 -bxor $binArray[$j]
$binArray[$j] = [math]::truncate($k / 24)
$k = $k % 24
}
$productKey = $charsArray[$k] + $productKey
If (($i % 5 -eq 0) -and ($i -ne 0)) {
$productKey = “-” + $productKey
}
}
$win32os = Get-WmiObject Win32_OperatingSystem -computer $target
$obj = New-Object Object
$obj | Add-Member Noteproperty Computer -value $target
$obj | Add-Member Noteproperty Caption -value $win32os.Caption
$obj | Add-Member Noteproperty CSDVersion -value $win32os.CSDVersion
$obj | Add-Member Noteproperty OSArch -value $win32os.OSArchitecture
$obj | Add-Member Noteproperty BuildNumber -value $win32os.BuildNumber
$obj | Add-Member Noteproperty RegisteredTo -value $win32os.RegisteredUser
$obj | Add-Member Noteproperty ProductID -value $win32os.SerialNumber
$obj | Add-Member Noteproperty ProductKey -value $productkey
$obj
}
}

- open Windows PowerShell with Administrator privileges (was typed PowerShell in Start Menu or Start Screen, right-click on the result and select Run as administrator)

- in the opened window type the following command
Set-ExecutionPolicy RemoteSigned
- when the question is displayed Do You want to change the execution policy? taste Y or give Enter for confirmation
- Then cut your order
Import-Module C:UsersPCDesktopRecoverKey.ps1; Get-WindowsKey

In the order above, replace C:Usersuser-nameDesktopRecoverKey.ps1 (where user-name it is your username) cu the location where you saved the file RecoverKey.ps1; for example C:UsersStealth_2DesktopRecoverKey.ps1 (you can find out the location of the file very easily by holding down the key Shift and right-clicking on it at the same time, then selecting the option Copy as path).
You will notice that in Windows PowerShell both the ID and the license code of your Windows system. Succes!
STEALTH SETTINGS – How to recover your Windows Product Key without using third-party app