About80Ninjas icon

activate windows

About80Ninjas | PRO | 01/08/16 01:42:14 PM UTC | 0 ⭐ | 401 👁️ | Never ⏰ | []
PowerShell |

610 B

|

None

|

0 👍

/

0 👎

$KmsServer = 'servername'
$map = 'BCDFGHJKMPQRTVWXY2346789' 
$value = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').digitalproductid[0x34..0x42]  
$ProductKey = ''  
for ($i = 24; $i -ge 0; $i--) 
{ 
    $r = 0 
    for ($j = 14; $j -ge 0; $j--) 
    { 
        $r = ($r * 256) -bxor $value[$j] 
        $value[$j] = [math]::Floor([double]($r/24)) 
        $r = $r % 24 
    } 
    $ProductKey = $map[$r] + $ProductKey 
    if (($i % 5) -eq 0 -and $i -ne 0) 
    {
        $ProductKey = '-' + $ProductKey
    } 
} 
 
slmgr.vbs -skms $KmsServer
slmgr.vbs /ipk $ProductKey

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎