Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我曾使用批处理 cmd (xxx.bat) 来执行 psexec 函数,如下所示:
C:\psexec.exe \192.168.xxx.xx -u server1\admin -p 密码 C:\xxx.bat
上述批处理文件可以成功运行到远程执行文件。
但我发现任务管理器中有很多cmd.exe和psexec.exe进程,批处理文件执行后无法杀死进程。
你知道如何在执行后杀死 cmd.exe 和 psexec.exe 进程吗?
谢谢
乔
我确信有更好的方法,但就个人而言,我使用 pskill 来执行此操作,例如:
pskill.exe \\\\192.168.x.x -u user -p pass -t <imagename>
您可以使用 pslist 命令(也在 pstools 工具集中)找到要终止的可执行文件的名称。