Windows: get CPU information on the console
Posted by jpluimers on 2021/12/28
It still seems that WMIC is the quickest way to get CPU information on the console:
T510-PSO C:\bin\rdp> wmic cpu get name,CurrentClockSpeed,MaxClockSpeed CurrentClockSpeed MaxClockSpeed Name 2667 2667 Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz T510-PSO C:\bin\rdp> wmic path win32_Processor get Name,NumberOfCores,NumberOfLogicalProcessors Name NumberOfCores NumberOfLogicalProcessors Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz 2 4
Actually, wmic cpu
is shorthand for wmic path win32_Processor
, so this works fine:
T510-PSO C:\bin\rdp> wmic cpu get name,CurrentClockSpeed,MaxClockSpeed,NumberOfCores,NumberOfLogicalProcessors CurrentClockSpeed MaxClockSpeed Name NumberOfCores NumberOfLogicalProcessors 2667 2667 Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz 2 4
The reason is that cpu
is an alias:
T510-PSO C:\bin\rdp> wmic alias cpu list brief FriendlyName PWhere Target CPU Where DeviceID='#' Select * from WIN32_PROCESSOR
Via:
- [Wayback] How to Find Out BIOS, Motherboard and CPU info from Command Line – NEXTOFWINDOWS.COM
- [Wayback] Check What Processor or CPU is in Windows PC | Tutorials
- [Wayback] wmic – Win32 apps | Microsoft Docs
- [Wayback] WMIC aliases: Windows Management Instrumentation (WMI); Scripting | Microsoft Docs
–jeroen
Leave a Reply