PsExec run remote batch file in visible mode

前端 未结 4 774
忘掉有多难
忘掉有多难 2021-01-16 12:57

I am trying to execute following command

psexec \\\\x.x.x.x -d -c -f cmd.exe /c d:\\test\\hello.bat

It runs fine and gives output



        
4条回答
  •  南笙
    南笙 (楼主)
    2021-01-16 13:34

    Try one of those:

    1. psexec \\server -u xxx-p xxxx /accepteula  -i 1 -d cmd.exe /K "cd d:\test && call hello.bat"
      
    2. psexec \\server -u xxx -p xxxx /accepteula  -i 1 -d d:\test\hello.bat
      

提交回复
热议问题