how to view windows 10 product key cmd 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