WMIC扩展WMI(Windows Management Instrumentation,Windows管理工具) ,提供了从命令行接口和批处理脚本执行系统管理的支持。记录WMIC查看CPU的方法。也是自己常用的方法。
WMIC进入方法:CMD-WMIC
cpu list brief
输出信息如下:
cpu list config
输出信息如下:
获取CPU name,也是CPU的型号:
cpu get name
获取cpu核心数:
cpu get NumberOfCores
获取cpu线程数:
cpu get NumberOfLogicalProcessors
当然,还可以通过cpu get获取计算机name:cpu get systemname。