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的更多相关文章

  1. if __name__== "__main__" 的意思(作用)python代码复用

    if __name__== "__main__" 的意思(作用)python代码复用 转自:大步's Blog  http://www.dabu.info/if-__-name__ ...

  2. 每天写点python

    1.收集系统信息python小程序 1 #!/usr/bin/env python 2 #A system information gathering script 3 4 import subpro ...

  3. DSET收集ESXi硬件日志

    1.Open DSET CLI with administrator mode C:\Windows\system32>dellsysteminfo -s 10.125.1.xxx -u roo ...

  4. Python 创建函数和代码重用

    1. cat func.py #!/usr/bin/python def func(): print "hello,this is a function" def func2(): ...

  5. Ubuntu16.04安装Ambari 2.7.3

    概念了解 Ambair介绍 Apache Ambari是一个用于支持大数据软件供应 管理与监控软件.它也是一个分布式软件,分为Ambair-Server与Ambari-Client两个部分.在生产环境 ...

  6. 每天写点shell脚本 (持续更新)

    1.显示系统信息脚本 #!/bin/bash #A system information gathering script #Command UNAME="uname -a" pr ...

  7. 牛掰的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 ...

  8. 用python执行Linux命令

    例1:在python中包装ls命令 #!/usr/bin/env python #python wapper for the ls command import subprocess subproce ...

  9. 强大的命令行工具wmic

    1.wmic=Microsoft Windows Management Instrumentation 2. C:\WINDOWS\system32\wbem 下的东西,特别是.xsl格式化文件,实现 ...

随机推荐

  1. oracle中clob字段的使用

    oracle中定义了一个字段是clob的,由于用的是ssh的框架,结果在面向对象存取的时候出现clob类型字段和String类型字段的转换问题.开始查阅了clob字段和String字段的相互转换的方法 ...

  2. #308 (div.2) A. Vanya and Table

    1.题目描写叙述:点击打开链接 2.解题思路:本题是一道简单的模拟题.每次扫描一个输入的长方形,然后将内部全部点都+1,终于统计数组全部元素的和就可以. 3.代码: #define _CRT_SECU ...

  3. ANDROID自己定义视图——onLayout源代码 流程 思路具体解释

    转载请注明本文出自大苞米的博客(http://blog.csdn.net/a396901990),谢谢支持! 简单介绍: 在自己定义view的时候.事实上非常easy.仅仅须要知道3步骤: 1.測量- ...

  4. IOS框架概览

    iOS是执行在iPhone.iPod Touch或iPad上的操作系统,之前叫做iPhone OS,iOS与Mac OS X有共同的基础架构和底层技术.但iOS是依据移动设备的特点而设计的,所以和Ma ...

  5. android 隐藏API 在源码下编译报错cannot find symbol symbol

    应该是我对android 不熟悉的缘故,今天使用源码编译了一个调用了隐藏api的应用程序始终报错: cannot find symbol symbol  : class IPackageInstall ...

  6. 极客Web前端开发资源大荟萃

    前端开发已经成为当前炙手可热的技术之中的一个.本周我们除了给大家带技术相关资讯,另一些技术人员经常使用的站点.希望大家不要错过我们本周的内容.原文来自:极客标签 为神马说敲代码是非常艰难的 程序猿 做 ...

  7. JSP 和 Servlet 有哪些相同点和不同点, 他们之间的联系是什么?

    jsp和servlet的区别和联系:1.jsp经编译后就变成了Servlet.(JSP的本质就是Servlet,JVM只能识别java的类,不能识别JSP的代码,Web容器将JSP的代码编译成JVM能 ...

  8. Windows下的PHP开发环境搭建——PHP线程安全与非线程安全、Apache版本选择,及详解五种运行模式。

    今天为在Windows下建立PHP开发环境,在考虑下载何种PHP版本时,遭遇一些让我困惑的情况,为了解决这些困惑,不出意料地牵扯出更多让我困惑的问题. 为了将这些困惑一网打尽,我花了一下午加一晚上的时 ...

  9. Struts2中获取HttpServletRequest,HttpSession等的几种方式

    转自:http://www.kaifajie.cn/struts/8944.html package com.log; import java.io.IOException; import java. ...

  10. bzoj 1007 : [HNOI2008]水平可见直线 计算几何

    题目链接 给出n条直线, 问从y轴上方向下看, 能看到哪些直线, 输出这些直线的编号. 首先我们按斜率排序, 然后依次加入一个栈里面, 如果刚加入的直线, 和之前的那条直线斜率相等, 那么显然之前的会 ...