I'm not exactly sure of your requirements, but I'll assume this is a Windows OS. The WMI object "Win32_Processor" should have a listing for each physical processor in the machine.
PowerShell one-liner (if you don't count the semicolon as a new line): [array]$ProcList = Get-WMIObject Win32_Processor; $ProcList.Count That could also very easily be done in a very short VBScript. From: David Lum [mailto:[email protected]] Sent: Wednesday, February 16, 2011 12:44 PM To: NT System Admin Issues Subject: CPUCount tool Does anyone have/know of a current CPU count tool? He have Intel's old CPU count tool but when we run it on a sparticualr server it generates no output (but it works on most other systems). The system in question is an IBM (not a blade) server. David Lum // SYSTEMS ENGINEER NORTHWEST EVALUATION ASSOCIATION (Desk) 503.548.5229 // (Cell) 503.267.9764 ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
