how to get to know product key for windows 10 code example
Example 1: get windows product key cmd
wmic path softwarelicensingservice get OA3xOriginalProductKey (do this in cmd, as administrator, Windows/system32)
Example 2: how to get current product key windows 10
wmic path softwarelicensingservice get OA3xOriginalProductKey