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, NumberOfLogic
You can also enter msinfo32 into the command line.
msinfo32
It will bring up all your system information. Then, in the find box, just enter processor and it will show you your cores and logical processors for each CPU. I found this way to be easiest.
processor