整理了很久,留备
------------------------
wmic process list full
wmic process list brief
wmic process where name="java.exe" get * /format:value 进程列表 【查找名为java.exe的进程详细信息】
wmic process where "CommandLine like '%zoo%' and Name='java.exe'" get * /format:value 【查找名为java.exe,且CommandLine匹配zoo的进程详细信息】
wmic process get * 【列出所有进程,如下】
------------------------
Caption=java.exe
Name=java.exe
CommandLine=java
PageFileUsage=240368 //虚拟内存使用 Bytes
WorkingSetSize=28725248 //内存使用 Bytes
PeakPageFileUsage=245384 //峰值虚拟内存使用 Bytes
PeakWorkingSetSize=56784 //峰值内存使用 Bytes
ReadTransferCount=7843344 //I/O读取量 Bytes
WriteTransferCount=73629 //I/O写入量 Bytes
ThreadCount=21 //线程
HandleCount=308 //句柄数量
WriteOperationCount=376 //I/O写入
ReadOperationCount=4620 //I/O读取次数
CreationDate=20160817092631.699768+480 //创建日期
------------------------
wmic process where caption="javaw.exe" get caption,commandline /value 监控某个进程 cmd命令行
fsutil volume diskfree c: 【磁盘余量】
wmic LogicalDisk where "Caption='C:'" get FreeSpace,Size /format:value
typeperf "\Memory\Available MBytes" -sc 1 【内存余量】
wmic os get freephysicalmemory /format:value
wmic computersystem get totalphysicalmemory /format:value
wmic cpu get name,NumberOfCores,SystemName /format:value 【cpu】
wmic cpu get loadpercentage 【cpu使用率】
wmic cpu get loadpercentage /format:value
wmic LogicalDisk where "Caption='C:'" get FreeSpace,Size /format:value
wmic os get freephysicalmemory /format:value
wmic cpu get name,NumberOfCores,SystemName /format:value
wmic cpu get loadpercentage /format:value
------------------------
附MSDN的WMIC文档:
https://blogs.technet.microsoft.com/askperf/2012/02/17/useful-wmic-queries/
Comments | NOTHING