以下命令写了“你好'到txt文件:
echo hello >c:\output.txt
在使用psexec时,如何将其作为远程命令进行调整?以下内容的行为方式不同:
PsExec.exe -nobanner -accepteula \\IP -u username -p password -n 30 -h -i 1 cmd /c echo hello >c:\output.txt
c:\ output.txt未在远程计算机上创建
答案 0 :(得分:0)
PsExec.exe -nobanner -accepteula \ IP -u username -p password -n 30 -h -i 1 cmd / c“echo hello> c:\ output.txt”