How to get and decode windows 10 20H2 product key from windows registry?

  key, product, registration, registry, windows

Everything I can find online works something like the code here https://gist.github.com/Spaceghost/877110. This does not work on Windows 10 20H2. The code runs but produces an erroneous result.

I need to know:

  • where in the registry am I supposed to get the product key from in binary?
  • how do I decode it (preferably but not necessarily in python)?

Source: Windows Questions

LEAVE A COMMENT