On Windows OS, we can find hardware information using
msinfo32 utility. This utility shows information about processors, system physical memory, disk drives, display monitor and BIOS etc.
To know processors information from command prompt, you can run the below command.
wmic cpu get caption
On my laptop, it shows the below information.
C:\>wmic cpu get caption Caption x86 Family 6 Model 37 Stepping 2 x86 Family 6 Model 37 Stepping 2 x86 Family 6 Model 37 Stepping 2 x86 Family 6 Model 37 Stepping 2 C:\>
The output shows that my laptop has 4 processors of x86 architecture.
We can get process information using system environment variables also. The environment variables related to CPU are listed below.
PROCESSOR_ARCHITECTURE PROCESSOR_IDENTIFIER PROCESSOR_LEVEL PROCESSOR_REVISION
The values of these environment variables can be retrieved using echo command.
C:\>echo %PROCESSOR_ARCHITECTURE% %PROCESSOR_IDENTIFIER% %PROCESSOR_LEVEL% %PROCESSOR_REVISION% x86 x86 Family 6 Model 37 Stepping 2, GenuineIntel 6 2502 C:\>