Solved

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

Posted on 2010-09-08
9
1,195 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
[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
  • 3
  • 3
  • 3
9 Comments
 
LVL 28

Accepted Solution

by:
sunnyc7 earned 500 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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 500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exchange 2007 , mailbox 3 33
Remote Powershell Issue 3 30
New-MoveRequest Exchange 2010 Powershell 1 37
Moving on from sbs 2008... 36 75
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
how to add IIS SMTP to handle application/Scanner relays into office 365.

756 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