Solved

Powershell to query CPU

Posted on 2014-02-22
3
910 Views
Last Modified: 2014-07-11
Hi,

I'm trying to query the total number of physical processors on 2003/2008 machines using wmi.

Problem:  Total processor is listing as total virtual processor due to Hyper Threading

1- How to get total Socket & Total Cores in W2k3 & W2k8
2 - How to find if HT is enabled or not
0
Comment
Question by:kbjijo
  • 2
3 Comments
 
LVL 51

Accepted Solution

by:
Netman66 earned 500 total points
ID: 39879540
Should work for physical and logical processors.

Get-WMIObject Win32_ComputerSystem | Format-List Name, NumberOfProcessors, NumberOfLogicalProcessors


As for Hyperthreading, if the Logical Processor count is higher than the Cores, then HT is enabled.

Get-WMIObject Win32_Processor | Format-List Name, NumberOfLogicalProcessors, NumberOfCores
0
 
LVL 51

Assisted Solution

by:Netman66
Netman66 earned 500 total points
ID: 39879552
Just a note for Server 2003; you may need this patch if it doesn't report correctly.

http://support.microsoft.com/kb/932370
0
 

Author Closing Comment

by:kbjijo
ID: 40190433
good
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Nathan Brom/Bromy2004 Introduction There are numerous websites out there for any different type of program you can imagine.  Of those, you'll need to decide which ones are legitimate and aren't trying to steal your money or infect your comput…
Log files are useful in diagnosing and repairing problems.  This is a list of common log files and their standard locations that I've compiled.   While this is not exhaustive, it is a pretty good list that I've found to be useful.  I may update it f…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question