Use given below command in order to get windows license key/Product key
Open command prompt as Admin mode and type the command
Open command prompt as Admin mode and type the command
wmic path softwarelicensingservice get OA3xOriginalProductKey
Press enter key