PsExec run remote batch file in visible mode

前端 未结 4 810
忘掉有多难
忘掉有多难 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:26

    PsExec.exe -s -i 2 C:\path_to_exe.exe
    

    This need to check with the session ID variable (-s & -i)

提交回复
热议问题