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.
1 2 |
[cc lang="powershell"]$property = "systemname", "deviceid", "name", "maxclockspeed","addressWidth", "numberOfCores", "NumberOfLogicalProcessors" Get-WmiObject -class win32_processor -Property $property | Select-Object -Property $property[/cc] |