Search code examples
windowscmdsoftware-design

Find Number of CPUs and Cores per CPU using Command Prompt


I am trying to retrieve the Number of CPUs and Cores per CPU using Command Prompt. I have executed the following command:

wmic cpu get NumberOfCores, NumberOfLogicalProcessors/Format:List

I get this error: wmic' is not recognized as an internal or external command, operable program or batch file

I am executing this on a Windows Server 2008 R2 machine. I believe the 'wmic' command is compatible on this windows.

The directory I am running the command promt from is 'C:\Windows>

Any advice please?


Solution

  • Based upon your comments - your path statement has been changed/is incorrect or the path variable is being incorrectly used for another purpose.