![]() That guy is a legend! Well, the original author too, clearly! The above script was taken from here, but takes into account the change suggested by TJ in the comments at the bottom, dated Feb 5th 2016. $object = New-Object PSObject -Property = $Computer ![]() ![]() $ProductKey = $ProductKey.Insert($i, '-') $ProductKey = $ProductKey.Insert($r, 'N') It appears that something has changed in the way the values are encoded (I've not had time to ascertain what that change is yet) function Get-ProductKey : Translating data into product key" -f $Computer) The following PowerShell script gets the same product key as the PowerShell and Cmd commands. ![]() POWERSHELL and CMD agree with each other, but the VBS script shows a different value. KeyOutput = Mid(Chars, Cur 1, 1)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |