How To Get Machine ID of a local Computer

Get-WmiObject -class SoftwareLicensingService | Select-object ClientMachineID