I'm trying to automate a few jobs on a server; the purpose is to execute a .bat file on a distant machine (Remote Exec), this file contains a very simple command which opens an URL (start "URL"). The execution works fine but on the distant machine the issue is that the iexplorer.exe is running on the background with no display!

Psexec \\computer "path\file name"

Can anyone advise please?



0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



I believe that in order for the psexec command to pass something that is interactive, you need to specify a -i as part of the execution string.

If you launch "psexec -?" youll see this:

 -i Run the program so that it interacts with the desktop of the specified session on the remote system. If no session is specified the process runs in the console session.
Answered 12/17/2012 by: matthall
Purple Belt

Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja