Windows下wmicコマンド学習ノート

629 ワード

参考原文:https://www.t00ls.net/articles-36133.html
wmic process where(description="mysqld.exe") >> mysql.log
#  MySQL      MySQL.log  

wmic process where(description="cmd.exe")
#  cmd        

wmic service where caption="zhudongfangyu" call stopservice  
wmic service where name="zhudongfangyu" call stopservice
echo y|wmic process where processid=6428 call terminate    pid
echo y|wmic process where name="SogouExplorer.exe" call terminate     

wmic process get description,executablepath
#      

wmic product get name,versionwmic product list brief
#