How to find number of actual processors present through command prompt

Hi,

   I want to know the way to find the number of actual physical processors present. Though system has one processor it is returning count as two. Is there any way to find exact no of physical processors present?

September 20th, 2012 6:17am

Hi,

Is this what you are trying to achieve?

wmic cpu get description, maxclockspeed,extclock, manufacturer

Free Windows Admin Tool Kit Click here and download it now
September 20th, 2012 6:24am

wmic cpu gives no of logical processors but not physica processsor count.

i found this command

systeminfo | find /i "processors"

thanks

  • Marked as answer by RameshLD Thursday, September 20, 2012 6:28 AM
September 20th, 2012 6:27am

system info gives exact count of processors installed
  • Marked as answer by RameshLD Thursday, September 20, 2012 6:28 AM
Free Windows Admin Tool Kit Click here and download it now
September 20th, 2012 6:28am

Check from command prompt

wmic cpu get caption

This is another way

echo %PROCESSOR_ARCHITECTURE% %PROCESSOR_IDENTIFIER% %PROCESSOR_LEVEL% %PROCESSOR_REVISION%

Its because you might have intel 2 core processor.

http://en.wikipedia.org/wiki/Intel_Core

September 20th, 2012 6:33am

the number of processors in practical terms (a product in a housing that can be plugged and unplugged) is having less and lesser relevance in todays software system. rather more important is the number of physical and logical cores.

not having any mulit processor machine to my hands anymore i instead do have only a multi core machine with a single processor unit (supposed to be hard soldered to the pcb as ist a laptop) to my hands.

you will have found out that "systeminfo" is noticeably slow and thus not that good for any use in a scripting solution. further the Terms you have to look for might depend on the language selection of the operating system.

"wmic" instead seems to be language independent and further relatively fast. it might produce multiple lines when there are multiple processor units - but i am just assuming that. summing up mutlitple lines might be a problem of increasing complexity in a script - but lets ignore that as it is of decreasing importance to solve that at the moment.

try this on your machine (it hase some tricks included to better cope with wmic):

for /F "skip=1" %%i in ('wmic cpu get NumberOfCores') do (
  set NumberOfCores=!prev!
  set prev=%%i
)
echo NumberOfCores=%NumberOfCores%

for /F "skip=1" %%i in ('wmic cpu get NumberOfLogicalProcessors') do (
  set NumberOfLogicalProcessors=!prev!
  set prev=%%i
)
echo NumberOfLogicalProcessors=%NumberOfLogicalProcessors%

Free Windows Admin Tool Kit Click here and download it now
June 10th, 2014 2:53pm

can use command in cmd "msinfo32" and 

You can see physical processor, No of core and logical. 

and one more command use full need to know system information "systeminfo"

Regards,

4M

May 18th, 2015 1:45am

@jeelani:
your suggestion works for just reading the number of physical processors on the screen.

but it does not work solely on command line. instead the command line launches a GUI window that has the value embedded somewhere. this is not script-able (=command line) and as a second aspect the result is language dependent and might further be very dependent on the processor vendor string layout.

i looked into the help for msinfo32 but was not able to find any hints for command line switches. a quick check using "/?" only brought up a relatively basic description of what that program is intended to do. but you might know better and want to share this with us?

Free Windows Admin Tool Kit Click here and download it now
May 18th, 2015 3:39am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics