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
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/233139.html原文链接:https://javaforall.net