欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

wmic创建进程

程序员文章站 2022-05-12 17:58:40
...
wmic /node:$ip /user:$user /password:$password --% Service where name="W3SVC" call stopservice
wmic /node:$ip /user:$user /password:$password --% Service where name="W3SVC" call startservice

wmic /node:$ip /user:$user /password:$password --% process where name="test.exe" delete
wmic /node:$ip /user:$user /password:$password --% process call create CommandLine="shutdown /r /f /t 0" CurrentDirectory="c:\"
wmic /node:$ip /user:$user /password:$password --% process where name="test.exe" get Name,CommandLine,ProcessId

相关标签: wmic