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