getting windows product key from cmd code example
Example 1: how to get current product key windows 10
wmic path softwarelicensingservice get OA3xOriginalProductKey
Example 2: find your OEM windows 7 key with cmd
powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey"