列2、显示bios信息
在cmd中输入:wmic bios get
列3、显示完整bios信息
在cmd中输入:wmic bios get /value
加上参数value显示更加直观
进程管理
列1、显示进程摘要信息
在cmd中输入:wmic process list brief
brief是一个参数,list决定显示的信息格式与范围,process是别名
可用下列 LIST 格式:
列2、显示进程完整信息
在cmd中输入:wmic process get
可用下列 LIST 格式:
也就是说在get后面追加下列参数如追加多个参数要用逗号隔开如:wmic process get csname,executablepath
列3、显示某个进程信息
在cmd中输入:wmic process where (description="ttplayer.exe")
列4
查询进程的启动路径(将得到的信息输出)
wmic process get name,executablepath,processid
wmic /output:c:process.html process get processid,name,executablepath /format:htable
列5、结束一个进程(可根据进程对应的PID)
wmic process where name='outlook.exe' call terminate
wmic process where name="notepad.exe" delete
wmic process where name="notepad.exe" terminate
wmic process where pid="123" delete
wmic path win32_process where "name='notepad.exe'" delete
列出某个安装的程序的信息
wmic product get packagename="*.msi"
删除安装的程序
wmic product where name="*" delete
wmic product where name="腾讯qq2009" delete
查询进程的启动路径(将得到的信息输出)
wmic process get
wmic /output:c:process.html process get processid,name,executablepath /format:htable.xsl
查询指定进程的信息
wmic process where name="notepad.exe" get name,executablepath,processid
::name=进程名、executablepath=路径、processid=进程ID
重启远程计算机
wmic /node:192.168.8.10 /user:administrator /password:xiongyefeng process call create "shutdown -r -f"
关闭远程计算机
wmic /node:192.168.8.10 /user:administrator /password:xiongyefeng process call create "shutdown -s -f"
创造一个进程
wmic process call create "d:program filesttplayerttplayer.exe"
在远程计算上创建进程
wmic /node:192.168.8.10 /user:administrator /password:xiongyefeng process call create "c:windowsnotepad.exe"
磁盘管理
查看远程主机C盘情况
WMIC /node:"192.168.8.100" /user:"administrator" /password:"lcx" /output:a.html logicaldisk where "name='c:'" get DeviceID,Size,FreeSpace,Description,FileSystem /format:htable
其中node开关表示对哪台机器进行访问,user和password当然是远程机器的用户名和密码了,这个命令有了以上的讲解,大家应当一目了然了吧。
列6、查看本机C盘情况
wmic logicaldisk where name="c:" get
::Caption=说明、 Compressed=压缩、 CreationClassName=创造类名称 Description=描述、 DeviceID=驱动器ID号 DriveType=驱动器类型、 FileSystem=文件系统、 FreeSpace=剩余空间、MaximumComponentLength Size=总容量、Status=状态、SystemName=计算机名、VolumeName=卷标名、VolumeSerialNumber卷标字符串









