本地: wmic SERVICE where name="tlntsvr" call startservice 远程: wmic /node:192.168.155.137 /user:"administrator" /password:"qwe123" SERVICE where name="tlntsvr" call startservice
获取可执行文件的路径
1 2 3 4
本地: wmic process where name="vmtoolsd.exe" get executablepath 远程: wmic /node:192.168.155.137 /user:"administrator" /password:"qwe123" process where name="vmtoolsd.exe" get executablepath
执行程序
1 2 3 4 5 6 7
本地: wmic process call create "calc" 远程:(未成功打开) wmic /node:192.168.155.137 /user:"administrator" /password:"qwe123" process call create "calc"