Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Powershell to query CPU

Posted on 2014-02-22
3
Medium Priority
?
1,114 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 51

Accepted Solution

by:
Netman66 earned 1500 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 1500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Many times while working on a computer regardless of any Operating System, lag and crashes seem to creep in, hindering your working speed. Sometimes, it can also cause your work to be lost unexpectedly and as a result, you are unable to meet your de…
This article covers how to install the Microsoft Windows Operating System (OS). What is covered in this article:  > Different Versions and Editions of the Windows OS  > Upgrading versus Fresh Installation of the OS           - Steps to take pr…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

705 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