To calculate the cost of licensing for Server 2016, it’s necessary to know how many cores each CPU of your server is running.  This WMI query is useful in identifying that. 


$property = "systemname", "deviceid", "name", "maxclockspeed","addressWidth", "numberOfCores", "NumberOfLogicalProcessors"
Get-WmiObject -class win32_processor -Property  $property | Select-Object -Property $property