Saturday, 2 November 2019

installation - How to find out which windows version my product key matches?


I retrieved my Windows 8 product key from the firmware but have no idea which version it's supposed to match. My Windows 8 cannot be booted into (hence the need to re-install in the first place)


How do I find out the correct version of Windows that my product key matches with?



Answer



Windows includes a DLL called pidgenx.dll which includes this function:


[DllImport("pidgenx.dll", EntryPoint = "PidGenX", CharSet = CharSet.Auto)]
static extern int PidGenX(string productKey, string pkeyPath, string mspid, int unknownUsage, IntPtr productID, IntPtr digitalProductID, IntPtr digitalProductID4);

For pkeyPath Windows setup passes a path to pkeyconfig.xrm-ms. In this file, the product key are defined and in the digitalProductID4 (last parameter), the Edition and Product key type (MSDN, Retail, Trial) is encoded.


The Ultimate PID Checker is one of several tools that call the function to decode the key.


enter image description here


Here you can see which edition the key belongs to.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...