

In the following situations it may be necessary to retrieve the Windows 10 product key: If you’ve purchased a digital license, you may be able to view the Windows 10 license and get a product key afterwards.

# Take character at position c and prepend it to the ProductKeyįinally we insert the "-" character into the string at the appropriate places. # Put the result of the divison back into the array # and xor it with the next byte of our id

# Shift the current contents of c to the left by 1 byte Some bit fiddeling and arithmatic for the decoding process.An inner loop over 0 to 14 (In reverse) For each byte in our encoded id.As it turns out a Windows product key doesn't use all of the alphanumerical symbols. So let us decode it.įor that you need the collection of all the characters a product key can be made of: Characters = "BCDFGHJKMPQRTVWXY2346789" This is still a bunch of bytes, that don't at all resemble the product key. EncodedId = DigitalProductId.Range(52, 52+14) In particular: the range between 52 and (52 + 14). Once you have those in an Array, you need to extract the subset of bytes that encode the product id. Let's see what we have to do with those bytes in order to get our product key with the help of some pseudo code. You could dump them via chntpw or copy them by hand. So for anyone wondering how this actually works.Įssentially you'll have to grab the contents of the registry key HKLM\Software\Microsoft\Windows NT\CurrentVersion\DigitalProductId
