Yesterday I’ve been asked to get some information on a Windows 2003 VM, since this is a remote VM managed with OpsMgr the natural choice has been to ask OpsMgr for such data. I must admit this is not the easiest task of it all, given the fact that OpsMgr misses an holistic view of discovered data for a specific managed device (this is an addon I must find the time to develop). The way to go is to figure out in which class the information is hidden and then use the discovered inventory view properly targeted. Starting points are typically the Windows Computer and Windows Operating Systems classes:
When I checked for the number of Logical Processors, with my surprise, just 1 was reported, while I was pertty sure the VM had 2 cores assigned.
It turned out WMI in Windows 2003 has an issue with multicore or hyperthreading processors and Hyper-v allocates the guest VMs one virtual multicore processor. The VM is effectively using the allocated cores, but WMI reports just one processor. Luckily there’s a fix for this behavior: KB 932370 The number of physical hyperthreading-enabled processors or the number of physical multicore processors is incorrectly reported in Windows Server 2003.
This posting is provided "AS IS" with no warranties, and confers no rights.