Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to find the no of PROC CORES in a Windows Server

Posted on 2010-09-08
9
Medium Priority
?
1,217 Views
Last Modified: 2013-12-13
I want to find the no of cores available on the server. Is tehre a way to do this without 3rd party tools?

System info gives only the processor information as below
Processor      x86 Family 15 Model 4 Stepping 3 GenuineIntel ~2793 Mhz
Processor      x86 Family 15 Model 4 Stepping 3 GenuineIntel ~2793 Mhz
Processor      x86 Family 15 Model 4 Stepping 3 GenuineIntel ~2793 Mhz
Processor      x86 Family 15 Model 4 Stepping 3 GenuineIntel ~2793 Mhz
0
Comment
Question by:JaveedShaik
  • 3
  • 3
  • 3
9 Comments
 
LVL 28

Accepted Solution

by:
sunnyc7 earned 1500 total points
ID: 33631676
Download belarc advisor
Run the tool
http://www.belarc.com/free_download.html

That gives you the number of cores
0
 
LVL 70

Expert Comment

by:KCTS
ID: 33631682
do a CTRL-ALT-DEL and go to task manager. Select the Performace tab, In CPU Usage History you should see one or more little graphs one for each processor
0
 

Author Comment

by:JaveedShaik
ID: 33631873
Task Manager gives the no of processors and I cant install any 3rd party tools.
Does anyone know the parameter in WMI to find the no of cores?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 28

Expert Comment

by:sunnyc7
ID: 33631887
start > run > cmd

wmic cpu get NumberOfCores

thanks
0
 
LVL 28

Assisted Solution

by:sunnyc7
sunnyc7 earned 1500 total points
ID: 33631911
tested it > it works with a simple answer

---

C:\Users\Administrator>wmic cpu get NumberOfCores
NumberOfCores
2
0
 
LVL 70

Expert Comment

by:KCTS
ID: 33631958
Task manager actually shows one graph for each processor core
0
 
LVL 70

Expert Comment

by:KCTS
ID: 33631987
... see this - from my single processor 2 core machine


cores.jpg
0
 

Author Comment

by:JaveedShaik
ID: 33632068
KCTS: The task manager shows the hyper threaded CPU's.
My laptop has 1 Processof and two cores and the attached is what it shows

The attached code works on my laptop (win 7 x64)  but not on the server. Aaarrrgg
SunnyC7 thanks for the code. It works on my laptop too but not on the server (win2k3 Std SP2)...
 Oh boy why is this so frustrating?
 

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" _
    & strComputer & "\root\cimv2")
Set colSettings = objWMIService.ExecQuery _
    ("Select * from Win32_ComputerSystem")
For Each objComputer in colSettings 
    Wscript.Echo "System Name: " & objComputer.Name
    Wscript.Echo "Number of Processors: " & _
        objComputer.NumberOfProcessors
Next


Set colItems = objWMIService.ExecQuery(_
    "Select * from Win32_Processor")
For Each objItem in colItems
    Wscript.Echo "No of Cores: " _
        & objItem.NumberOfCores
Next

Open in new window

TM.jpg
0
 

Author Closing Comment

by:JaveedShaik
ID: 33632753
Provides partial answer
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

916 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