Windows 7, check number of cores (Threads)

I create this note as a reminder to myself. I also hope this help to some else.

wmic computersystem get Numberoflogicalprocessors

This command gives you number of core (Threads).

wmic computersystem get numberofprocessors

This number gives you number of physical processors