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