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
In order to check the absence of physical sockets run:
wmic cpu get SocketDesignation