How To Find Windows 7 Product Key Without Software On Laptop, PC Lenovo, HP, Dell Any PC

Today’s tutorial will teach you How to find Windows 7 product key before the clean install Windows 7 or migrating from one PC to another PC? You can retrieve your product key without using any third party software. Please watch this tutorial till the end and subscribe and like If it helped to solve your problem.

Majority of Microsoft Windows users don’t care of the product key before or after buying a brand new or used computer.

No matter You use a brand new or old computer, A time comes when you have to clean install Windows 7 or any other Microsoft Windows version. Many of Microsoft Windows users do this without backup and proper planning and regret after clean install Windows. The worst situation, one may face is being unable to activate any version of Windows after clean install. As well as they can’t activate programs they were using before clean install Windows.

Extreme caution is advisable before clean install Windows, In addition to other things, Write down the product key and other serial, license keys and move your important documents and files from Drive C to any other partition.

Today’ tutorial will help you find the product key of your copy of Windows 7 If you don’t know or forgot the product key. Before We proceed any further, You need to have administrative privileges to retrieve the product key. Though I’m doing this on a Windows 7 PC, but the whole process is pretty same for Windows 8 and Windows 10.

Open notepad.

Copy and paste below given code into the notepad and save it.

————————————————————————————————–

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 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

}

}

————————————————————————————————–

Save it as GetProductKey.ps1. Please note ps1 is an extension.

You now need to open Powershell with administrative privileges.

Copy and paste this command into powershell and hit enter.

Set-ExecutionPolicy RemoteSigned

Type Y and hit enter.

Now you need to copy and paste this command to get the product key. Before you copy and paste, Please replace Atif with your username and desktop with the location where you saved GetProductKey.ps1.

Import-Module C:\Users\Atif\Desktop\GetProductKey.ps1; Get-WindowsKey

Copy and paste this command into powershell and hit enter.

Congratulations, This is the product key. Save it in a safe place.

Please do let me know If I could not explain anything properly or You run into any problem. I will try my best to solve your problem. You may use the comment section to ask questions.

Stay tuned, stay blessed, and Don’t forget to like, subscribe, comment and share.

Credit – Winaero.com/blog/how-to-get-the-windows-product-key-without-using-third-party-software/


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *