Need WMI query to get ACCURATE number of cores, number of sockets, and status of HyperThreading

I need a WMI query to get an ACCURATE number of sockets, ACCURATE number of cores, and ACCURATE status if HyperThreading is on or off on a large set of servers.  Any suggestions on how to implement this would be greatly appreciated.  I need support for both AMD and Intel chipsets.  
Note: Some tools I have found for this report INACCURATE info, such as Hyperthreading being
enabled on older AMD chips (impossible).  Also, some tools report dual core chips as single core
chips and hyperthreading reporting as physical CPU cores.  


toddvorosAsked:
Who is Participating?
 
grayeConnect With a Mentor Commented:
Part of the problem is that WMI just recently updated their DLLs to include the accurate detecion of physical and logical CPUs.   So, if you've got WinXP SP3, Vista, or Windows Server 2008, then you've got the updated WMI parts... otherwise you basically can't use WMI
0
 
toddvorosAuthor Commented:
Any other suggestions?
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
CallandorCommented:
You haven't explained why the suggestions already given won't work.  You need to work with the experts if you want to get something out of this.
0
 
toddvorosAuthor Commented:
Still looking for a commercial product that provide this info for W2000 and W2003 servers.
Intel had a nice free utility but it only works with W2008 and XP which doesn't help me.
No one has been able to provide be with anything that provide this info accurately so far.
0
 
CallandorCommented:
Intel had a utility called cpucount.exe http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Q_22984160.html, but the link doesn't seem to work anymore.  I have attached the file with a txt extension, but it should work if you rename it without the txt.
cpucount.exe.txt
0
 
toddvorosAuthor Commented:
That utility only works on W2008 and XP.  I need W2000 and W2003.
0
 
grayeCommented:
I was in the middle of writing a replacement WMI provider to get that additional info... but I abandoned the project when Microsoft added this missing feature to WinXPSP3, WinS2003R2, and Vista.   I got as far as a test harness application and a DLL file.   Both work, but I haven't touch it since 2004.
I'd be willing to share my source code... do you have anyone who can work with C++ ?
0
 
toddvorosAuthor Commented:
Graye:  Please send me your C++ code, it might give me what I need.
0
 
grayeCommented:
Okey Dokey.... I've placed the zip file on my web server http://www.emmet-gray.com/temp/CPUID.zip
Remember, I  haven't touched this since about 2004
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.