How recover the license key to activate Windows 8 and 8.1

Hey friends, in today's tutorial we will see how we can recover the license key to activate Windows or Windows 8 8.1 Pro and even the Windows 7.
As you probably know, laptops, ultrabooks are sold with Windows pre-installed. Manufacturers do not offer a DVD of the operating system where the client wants to do a reinstall but stick a sticker on their Stapele license key for the operating system installed on that laptop. If you want to do a reinstall of Windows will need to install the same version of Windows that you have installed on your laptop when you bought it just in case the license sticker located on the back of the laptop, you can activate the operating system reinstalled .
In most cases manufacturers do a backup and creates a hidden partition (recovery partition) in your laptop, a backup of the operating system can be restored thus returning to the operating system settings and factory, as it was when you first turned on your laptop .
Perhaps many of us already have a DVD with the operating system and I want to use the 50 GB recovery partition busy. Deleting the recovery partition can get more storage space on our laptop.
Unfortunately for producers delivering laptops with Windows 8 or 8.1 things have changed a bit. Many laptops do not have the license sticker stuck on the back of the laptop and license key for your operating system comes embedded (embedded) operating system. If I deleted partition recovery, thing do most non-technical users, I ran Windows license or Windows 8 8.1
The simple trick shown in the tutorial today we get license Windows 8.1 without using additional software. So after I got / back license Windows 8.1 Pro we can delete the recovery partition quiet and we can reinstall the operating system using the avechiului system licemta key to activate the newly installed operating system.
In conclusion Retrieve the old license key Windows 8.1 before reinstalling the operating system and delete the recovery partition on your laptop!
How is licensed and operates as an operating system, will speak at another tutorial. Until next time, I wish you pleasant viewing!

The code used in the tutorial PowerShell script:
function Get-WindowsKey {
## function to retrieve the Windows Product Key from any PC
param ($targets = ".")
$hklm = 2147483650
$regPath = "Software\Microsoft\Windows NT\CurrentVersion"
$regValue = "DigitalProductId4"
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 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
}
}
Get-WindowsKey localhost


Adrian: Hungry for information and knowledge, I like everything related to the technical field and I share my knowledge with great pleasure. Those who give themselves to others will lose themselves but usefully, leaving something useful to others. Enjoying this privilege, I will never say "I don't know", but "I don't know yet"!

View Comments (109)

  • The simplest method is with license bacup. Download and install Advanced Tokens Manager. Here you also see the key plus that you have made a license bacup and it is restored with just a single mouse click.

  • Hello Cristi and Adrian. You could do a tutorial Tasker application for Android. I searched the site and I have not found anything like that. Thank you very much

      • Both I and visitors of this site we have shown many times to solve this problem. If you looked more closely you found in the comment field. A say it again. Runs' Set-ExecutionPolicy RemoteSigned "(without quotes) before running the script.

        • It still doesn't work. So first I run Set-Execution ... and then the rest of the steps in the video ... and it still doesn't work

  • Hello. If you no longer understand what is written on that Bolet, they can do something to recover licienta.
    Mention that Windows is not made by the manufacturer.

    • It is not possible because you formatted windows the one put by the manufacturer and probably now you have another version of windows, when you ask questions be explicit what windows you had (vista, xp, 7,8 ...) and what windows you have now. ..

        • In some cases, for UEFI laptops, manufacturers embed the license in the "BIOS". If this is your case, you may still have a chance of recovery. It is difficult to say because each manufacturer works differently.
          I will present in another tutorial a software that "looks" in the UEFI BIOS after the license and if it exists, it will display it but such situations are a bit rare and more common only for those who have purchased a laptop with Windows 8 or Windows 8.1

          • Hi, last year I bought a laptop with Win8 pre-installed, but after 1 month I installed Win7 and in order to do that I had to give Clean Hard ... so I don't have a recovery partition anymore, can I still recover that key?

  • Hi Adrian, my method did not work on Windows 8, until I inserted before ordering
    "Set-ExecutionPolicy RemoteSigned" in PowerShell and then I followed the steps described by you in the tutorial.

    • Right. Sometimes you have given the command to obtain the rights required for running the last command.
      Doru I suggest you give the specified command (and others who have trouble running the first command) and then the one mentioned in the tutorial

  • Hi Adrian, I bought a Toshiba Qosmio laptop has Windows installed 8.1 and has one actipild with Windows 8 KEYA so without license. I can say I have the laptop than 2 days, I reinstalled it, I tried the steps mentioned by you and I encountered this error and I can not explain why:

    Import-Module: File C: \ Users \ \ Desktop \ Reco
    disabled on this system. For more information, see abou
    http://go.microsoft.com/fwlink/?LinkID=135170.
    At line: 1 char: 1
    + Import-Module C: \ Users \ RemusDumitru \ Desktop \ RecoveryK
    + ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
    + CategoryInfo: SecurityError: (:) [Import
    + FullyQualifiedErrorId: UnauthorizedAccess, Micros
    Get-WindowsKey: The term 'Get-WindowsKey' is not recog
    operable program. Check the spelling of the name, or if
    again.
    At line: 1 char: 62
    + Import-Module C: \ Users \ RemusDumitru \ Desktop \ RecoveryK
    +
    + CategoryInfo: ObjectNotFound: (Get-Wind
    + FullyQualifiedErrorId: CommandNotFoundException

    Thank you

  • When I do not work on Win 8.0, 64 bit.
    After doing all the steps in the tutorial, there writes below in red:

    Import-Module: File C: \ Users \ spec2 \ Desktop \ RecoveryKey.ps1 Because running can not be loaded scripts is disabled on thi
    s system. For more information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.
    At line: 1 char: 1
    + Import-Module C: \ Users \ spec2 \ Desktop \ RecoveryKey.ps1; Get-WindowsKey
    + ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
    + CategoryInfo: SecurityError: (:) [Import-Module], PSSecurityException
    + FullyQualifiedErrorId: UnauthorizedAccess, Microsoft.PowerShell.Commands.ImportModuleCommand
    Get-WindowsKey: The term 'Get-WindowsKey' is not recognized as the name of a cmdlet, function, script file, or operabl
    e program. Check the spelling of the name, or if the PATH WAS included, verify That the path is correct and try again.
    At line: 1 char: 55
    + Import-Module C: \ Users \ spec2 \ Desktop \ RecoveryKey.ps1; Get-WindowsKey
    + ~~~~~~~~~~~~~~
    + CategoryInfo: ObjectNotFound: (Get-WindowsKey: String) [], CommandNotFoundException
    + FullyQualifiedErrorId: CommandNotFoundException

  • Remus Dite and Laurentiu:
    Before giving the command from the tutorial, give the command "Set-ExecutionPolicy RemoteSigned" press Enter then "Y" and again Enter and only after executing the command mentioned in the tutorial

Related Post

This website uses cookies.