Share via

Windows Key

Anonymous
2021-07-07T18:52:18+00:00

Recently purchased new Dell that came w/ Win 10 OEM license. As we all know, there are numerous ways to retrieve windows keys, activation, type, etc. The two examples below were run on my recently purchased Dell PC, and each fetched and came back with different output. Why would this be?

When running command prompt below, I get one key

wmic path softwarelicensingservice get OA3xOriginalProductKey

When creating VBS script below, I get a different key

Set WshShell = CreateObject("WScript.Shell")

MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))


Function ConvertToKey(Key)

Const KeyOffset = 52

i = 28

Chars = "BCDFGHJKMPQRTVWXY2346789"

Do

Cur = 0

x = 14

Do

Cur = Cur * 256

Cur = Key(x + KeyOffset) + Cur

Key(x + KeyOffset) = (Cur \ 24) And 255

Cur = Cur Mod 24

x = x -1

Loop While x >= 0

i = i -1

KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput

If (((29 - i) Mod 6) = 0) And (i <> -1) Then

i = i -1

KeyOutput = "-" & KeyOutput

End If

Loop While i >= 0

ConvertToKey = KeyOutput

End Function

Windows for home | Windows 10 | Licensing and activation

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Anonymous
    2021-07-07T22:05:41+00:00

    Carlo,

    Thanks for your reply -

    Per your instructions, the ShowKeyPlus app lists the same key as CMD wmic path softwarelicensingservice get OA3xOriginalProductKey

    I guess the question I now have is, why does the VBS script option, show something different? From everything I've read (not to mention the fact it actually retrieved something), that VBS script is legit and used and "signed off" by numerous reputable sources online. So assuming the VBS script method is legit, what gives? The output on the VBS script shows 25 characters w/ the dashes, much like what CMD and ShowKeyPlus produce, but just different characters obviously.

    Thanks again for your help, much appreciated.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2021-07-09T01:42:59+00:00

    Good Day Blake,

    You can visit this link below as reference to know difference of Product key and the Product ID.

    https://answers.microsoft.com/en-us/windows/for...

    Have a wonderful day ahead and stay safe.

    Sincerely,

    Carlo T.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2021-07-08T04:35:02+00:00

    Good Day Blake,

    I appreciate your time getting back to this thread, if the Showkey Plus and WMIC command shows the same means that is your legitimate key and that is the only way to check the key installed in your device. The vbs script you used is not a legit script , I check the script and it states to ready the Product ID in the registry not the Product key itself.

    No worries the results you see in the WMIC command and ShowkeyPlus, that is your legitimate key.

    Have a wonderful day ahead and stay safe.

    Sincerely,

    Carlo T.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2021-07-07T19:27:56+00:00

    Good Day Blake,

    My name is Carlo, I'm an Independent Advisor and community member like you.

    I am also using Windows 10 pc. Let us work together to sort this out.

    You can download and install the tool called ShowKeyPlus from Microsoft Store to check the key that was installed.

    Here's the link to download.

    https://www.microsoft.com/en-us/p/showkeyplus/9...

    Once downloaded and installed, open the app then it will show you the key that was installed, check if its shows the same of the results in the command prompt by entering the wmic path softwarelicensingservice get OA3xOriginalProductKey

    If they are the same that is your actual key that was installed in your device.

    Have a wonderful day ahead and stay safe.

    Sincerely,

    Carlo T.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more