Using WMIC For Gathering System Info
WMIC is a command line interface to WMI (Windows Management Instrumentation). While it has many uses, I find it especially useful for querying certain system parameters.
Processor:
C:\>wmic cpu get Name Name
Intel(R) Pentium(R) M processor 1.80GHz
C:\>wmic cpu get NumberOfCores, NumberOfLogicalProcessors NumberOfCores NumberOfLogicalProcessors
1 1
The NumberOfCores and NumberOfLogicalProcessors properties are new to Windows Vista. NumberOfLogicalProcessor refers to the number of hyperthreading execution units that a processor has. NumberOfCores, to state the obvious, gets you the number of cores that a processor has.
Operating System:
C:\>wmic os get Name Name
Microsoftr Windows VistaT Ultimate |C:\Windows|\Device\Harddisk0\Partition1
C:\>wmic os get BuildNumber, BuildType, Version BuildNumber BuildType Version
6000 Multiprocessor Free 6.0.6000
C:\>wmic os get ServicePackMajorVersion, ServicePackMinorVersion ServicePackMajorVersion ServicePackMinorVersion
0 0
C:\>wmic os get OperatingSystemSKU
OperatingSystemSKU
1
The OperatingSystemSKU property is new to Windows Vista. A value of 1 means that you are running the Ultimate edition. Other values and their corresponding SKU names can be found on the Win32_OperatingSystem documentation page.
Finally, Windows Vista introduces the concept of Windows Experience Index that allows you to measure your PC’s performance. Your computer’s Windows Experience Index (WEI) score can be queried from command line. First we find out if the WEI score for your computer is still valid:
C:\>wmic path Win32_WinSAT get WinSATAssessmentState WinSATAssessmentState
1
A value of 1 for the property WinSATAssessmentState means that we have the correct, latest value of the WEI score available. A value other than 1 means that the score is either unknown or needs to be recomputed to be coherent with a hardware change made to the machine. Here is how you can get to the WEI scores:
C:\>wmic path Win32_WinSAT get CPUScore, D3DScore, DIskScore, GraphicsScore, MemoryScore, WinSPRLevel CPUScore D3DScore DiskScore GraphicsScore MemoryScore WinSPRLevel
3.7 2.5 3.8 2 4.1 2 From:http://www.deepakg.com/blog/2007/08/using-wmic-for-gathering-system-info/
Using WMIC For Gathering System Info的更多相关文章
- if __name__== "__main__" 的意思(作用)python代码复用
if __name__== "__main__" 的意思(作用)python代码复用 转自:大步's Blog http://www.dabu.info/if-__-name__ ...
- 每天写点python
1.收集系统信息python小程序 1 #!/usr/bin/env python 2 #A system information gathering script 3 4 import subpro ...
- DSET收集ESXi硬件日志
1.Open DSET CLI with administrator mode C:\Windows\system32>dellsysteminfo -s 10.125.1.xxx -u roo ...
- Python 创建函数和代码重用
1. cat func.py #!/usr/bin/python def func(): print "hello,this is a function" def func2(): ...
- Ubuntu16.04安装Ambari 2.7.3
概念了解 Ambair介绍 Apache Ambari是一个用于支持大数据软件供应 管理与监控软件.它也是一个分布式软件,分为Ambair-Server与Ambari-Client两个部分.在生产环境 ...
- 每天写点shell脚本 (持续更新)
1.显示系统信息脚本 #!/bin/bash #A system information gathering script #Command UNAME="uname -a" pr ...
- 牛掰的python与unix
python的中心哲学 Python 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on ...
- 用python执行Linux命令
例1:在python中包装ls命令 #!/usr/bin/env python #python wapper for the ls command import subprocess subproce ...
- 强大的命令行工具wmic
1.wmic=Microsoft Windows Management Instrumentation 2. C:\WINDOWS\system32\wbem 下的东西,特别是.xsl格式化文件,实现 ...
随机推荐
- HDU1695-GCD(数论-欧拉函数-容斥)
GCD Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submis ...
- Android使用ViewFlipper实现左右滑动效果面
在我的博客中,上次是使用ViewPager实现左右滑动的效果的,请看文章:Android使用ViewPager实现左右滑动效果. 这次我来使用ViewFlipper实现这种效果,好了,先看看效果吧: ...
- iOS设计模式——MVC(Model-View-Controller)
Modol View Controller(MVC)是一种最早的也是最成功的可重用的设计模式,70年代的时候首次在smaltalk编写的程序中成功使用.基于MVC设计 模式,Cocoa整体架构可以划分 ...
- winform treeview 通过节点名称添加子节点
/// <summary> /// 添加人员节点(利用TreeNodeCollection) /// </summary> /// <param name="t ...
- 七日筑基——C#第二天
上一次讲到了变量,变量这个东西可以说是编程的基础,主要的作用就是用来存放数据,就跟做菜一样的,不同的菜要放在不同类型的容器中,那么不同的数据也需要存放在不同类型的变量里.先放张饭菜的图给大家看看,增加 ...
- 很郁闷,七日筑基C#第二天的内容未保存
很郁闷,七日筑基C#第二天的内容写了好几百字未保存,刚才死机了,一下打击得不行了.
- eclipse自动生成的appcompat_v7出错
用eclipse新建Android工程时,自动生成的appcompat_v7出错,有个红色交叉,而且新建的Android工程有一个红色感叹号. 这时你去看看你新建的Android工程是不是没有生成R文 ...
- ubuntu16.04安装kde桌面出错: /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb
出错提示: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 kubuntu-desktop 已经是最新版 (1.338). 您可能需要运行“apt-get - ...
- C++函数声明和定义深度解析
概述: 声明是将一个名称引入一个程序. 定义提供了一个实体在程序中的唯一描述. 声明在单个作用域内可以重复多次(类成员除外),定义在一个给定的作用域内只能出现一次. 一个定义就是一个声明,除非: 它定 ...
- JavaSE_ IO流 总目录(19~22)
JavaSE学习总结第19天_IO流119.01 集合的特点和数据结构总结19.02 如何选择使用哪种集合19.03 集合常见功能和遍历方式总结19.04 异常的概述和分类19.05 JVM默认处理异 ...