PowerCLI: Counting physical CPUs in a vSphere Host

We recently needed to calculate the number of physical CPUs in use by hosts running Windows VMs in order to work out how many Windows Server 2008 Data Center Edition licenses we require. Data Center (DC) edition permits you to run as many Windows Server VMs as you like on a host which has the DC license. You […]