Windows cd key

get cd-key from windows
use this in powershell
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey