windows how to look up product codes 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 view product key in windows 10
wmic path SoftwareLicensingService get OAxOriginalProductKey
write this in Powershell