Q. How can I get the product key for Windows that was supplied as part of my machine from the OEM?
A. The easiest way to find the Windows product key that was configured by the OEM that supplied your machine is to run the following command:
wmic path softwarelicensingservice get OA3xOriginalProductKey