Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1229
  • Last Modified:

Powershell to query CPU

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
kbjijo
Asked:
kbjijo
  • 2
2 Solutions
 
Netman66Commented:
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
 
Netman66Commented:
Just a note for Server 2003; you may need this patch if it doesn't report correctly.

http://support.microsoft.com/kb/932370
0
 
kbjijoAuthor Commented:
good
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.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now