Thứ Ba, 27 tháng 3, 2018

Restore Windows product key without using third-party tools

On the off chance that you lose it, you can not recoup or overlook where you have put away the item key of Windows 8 product key, Windows 8.1 product key ,Windows 7. Try not to be disillusioned, the accompanying I will give you a straightforward answer for recuperate your item key from introducing the working framework on your PC without utilizing any product.

1. Open Notepad.

2. At that point glue the accompanying code into Notepad.

work Get-WindowsKey {

# thợ hàm để lấy thông tin về Windows Product Key từ bất thường any PC

## by Jakob Bindslet (jakob@bindslet.dk)

param ($ targets = ".")

$ hklm = 2147483650

$ regPath = "Programming \ Microsoft \ Windows NT \ CurrentVersion"

$ regValue = "DigitalProductId"

Foreach ($ focus in $ targets) {

$ productKey = $ invalid

$ win32os = $ invalid

$ wmi = [WMIClass] "\\ $ target \ root \ default: stdRegProv"

$ information = $ wmi.GetBinaryValue ($ hklm, $ regPath, $ regValue)

$ binArray = ($ data.uValue) [52..66]

$ "", "" , "T", "V", "W", "X", "Y", "2", "3", "4", "6"

# mã giải mã base24 encoded double information

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

In the event that (($ i% 5 - eq 0) - and ($ I - ne 0)) {

$ productKey = "- " + $ productKey

}

}

$ win32os = Get-WmiObject Win32_OperatingSystem - PC $ target

$ obj = New Object

$ obj | Add-Member Noteproperty Computer - esteem $ target

$ obj | Add-Member Noteproperty Caption - esteem $ win32os.Caption

$ obj | Add-Member Noteproperty CSDVersion - esteem $ win32os.CSDVersion

$ obj | Add-Member Noteproperty OSArch - esteem $ win32os.OSArchitecture

$ obj | Add-Member Noteproperty BuildNumber - esteem $ win32os.BuildNumber

$ obj | Add-Member Noteproperty RegisteredTo - esteem $ win32os.RegisteredUser

$ obj | Add-Member Noteproperty ProductID - esteem $ win32os.SerialNumber

$ obj | Add-Member Noteproperty ProductKey - esteem $ productkey

$ vol

}

}
3. Spare the code to a record with a .PS1 augmentation on your work area.


4.Open Windows PowerShell with Administrator by composing "Windows PowerShell" in the Start menu scan box for the individuals who utilize Windows 7 or on the Start screen squeezing Ctrl + Shift + Enter for Windows 8/8.1
learn more:WINDOWS 7 PRODUCT KEY


Không có nhận xét nào:

Đăng nhận xét