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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

grayeCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
toddvorosAuthor Commented:
Any other suggestions?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.