WMIC PROCESS【进程管理】命令大全

东坡下载 2017年11月25日 08:39:29

      列出进程
      wmic process list brief
      (Full显示所有、Brief显示摘要、Instance显示实例、Status显示状态)

      wmic 获取进程路径: 
      wmic process where name="jqs.exe" get executablepath

      wmic 创建新进程 
      wmic process call create notepad
      wmic process call create "C:\Program Files\Tencent\QQ\QQ.exe" 
      wmic process call create "shutdown.exe -r -f -t 20"

      wmic 删除指定进程: 
      wmic process where name="qq.exe" call terminate 
      wmic process where processid="2345" delete 
      wmic process 2345 call terminate

      wmic 删除可疑进程
      wmic process where "name='explorer.exe' and executablepath<>'%SystemDrive%\\windows\\explorer.exe'" delete
      wmic process where "name='svchost.exe' and ExecutablePath<>'C:\\WINDOWS\\system32\\svchost.exe'" call Terminate