Get Just Windows Product Key

Hello,
I am trying to extract the Windows Product Key from systems.

I see alot of people online use this here, but for me it returns nothing on multiple computers:

Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

I can get it using this, but it returns more than just the product key field. Is there anyway to filter thios output to JUST the product key line? Im sure some fancy regex could do it lol!

Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform' -Name BackupProductKeyDefault

Thanks !

I answered my own question, here it is:

Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform' -Name BackupProductKeyDefault | Select-Object -property BackupProductKeyDefault

Love Powershell!