Interactive mode of PSExec not working for console application

Posted by Focker on Server Fault See other posts from Server Fault or by Focker
Published on 2012-11-30T03:25:25Z Indexed on 2012/11/30 5:07 UTC
Read the original article Hit count: 193

Filed under:
|

I am trying to use PSExec to kick off a console application on a remote computer in an interactive state. When I run something like this:

PsExec.exe -s -d -i 1 \\MyServer notepad.exe

It launches Notepad just fine. If I then run this:

PsExec.exe -s -d -i 1 \\MyServer C:\Temp\MyConsoleApp.exe

It launches the command windows but doesn't do anything as far as I can tell. As in, when I run my console application locally, it displays a "heartbeat" every 5 seconds, but when I run it remotely, nothing is displayed in the command window. The .exe does show up as a process in Task Manager. Any ideas?

© Server Fault or respective owner

Related posts about Windows

Related posts about psexec