How can we recover the license code of? Windowswithout using third-party applications

If you forget which is license code your system Windows and want to make a resettlement (Or want to make a backup its just in case), it is not necessary to resort to third-party applications to find out what it is. If you use a system Windows recently (Windows 7, Windows 8 or Windows 8.1) You can recover license code thereof in Registry System using the following instructions.

How can we recover the license code of an operating system? Windows from system registers (without using third-party applications)?

windows-Production-key
  • give Copy / Paste The following code in a NotepadThen save the file desktop titled RecoverKey.ps1 (It is mandatory that File extension be newly created . Ps1)

function Get-WindowsKey {
## function to retrieve the Windows Product Key from any PC
# # By Jakob Bindslet (jakob@bindslet.dk)
param ($targets = ".")
$ HKLM = 2147483650
$ regPath = “Software \ Microsoft \Windows NT \ CurrentVersion "
$ RegValue = "DigitalProductID"
foreach ($target in $targets) {
$ ProductKey = $ null
$ Win32os = $ null
$ wmi = [WMIClass] “\\ $target\ root \default: 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 binary encoded base24 date
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-eq 5 0%)-and ($ i 0 us)) {
$ 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
}
}

recoverkey_ps1
  • open Windows PowerShell cu privileges of administrator (Typing PowerShell in Start Menu or Start Screen, Right click on the result and select Run ace administrator)
open powershell
  • Type the following command in the open window

Set ExecutionPolicy RemoteSigned

  • When you see the question Do You want to change the execution policy? enter Y or give Enter for confirmation
  • then type the command

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

recover-windows-Production-key

In the above command, replace C: \ Users \ user-name \Desktop\ RecoverKey.ps1 (where user-name this Your user name) With location where you saved the file RecoverKey.ps1, For instance C:\Users\Stealth_2\Desktop\ RecoverKey.ps1 (You can find simply holding down the file location Shift and right-click on it while, then clicking Copy as path).

You will notice that in Windows PowerShell will be displayed both ID and the license code of your system Windows. Success!

STEALTH SETTINGS - How to recover yours Windows Product Key without using third-party app

Passionate about technology, I like to test and write tutorials about operating systems Windows, always looking to discover interesting things.

How to » Noteworthy » How can we recover the license code of? Windowswithout using third-party applications
Leave a Comment