![]() ![]() 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) & KeyOutput MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) Set WshShell = CreateObject("WScript.Shell") Return a different result to this VBS script. ![]() POWERSHELL (Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKeyĬMD wmic path softwarelicensingservice get OA3xOriginalProductKey This question asks why is there a difference when they should all return the same value? ![]() Following on from this question (which asks how to retrieve a Windows Product Key), there seems to be conflicting information obtained from the various methods. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |