Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Run exe on remote machine  (Read 5679 times)

0 Members and 1 Guest are viewing this topic.

99miles

  • Guest
Run exe on remote machine
« on: June 08, 2006, 05:33:31 PM »
How can I run an exe on a remote machine?

I can start the exe fine, but it executes on the machine the bat file is on, not the machine the exe is on.

Thanks!

ghostdog74



    Specialist

    Thanked: 27
    Re: Run exe on remote machine
    « Reply #1 on: June 08, 2006, 06:02:26 PM »
    Quote
    How can I run an exe on a remote machine?

    I can start the exe fine, but it executes on the machine the bat file is on, not the machine the exe is on.

    Thanks!

    you can get psexec from http://www.sysinternals.com/Utilities/PsExec.html
    or if your remote has telnet server, you can write a telnet script and connect to the remote
    to execute your exe

    CameronY



      Intermediate

      Re: Run exe on remote machine
      « Reply #2 on: June 08, 2006, 08:13:08 PM »
      Alternatively, you could set up a scheduled task on the remote server which will execute the EXE under the user that has permissions to do so (or want).

      From your server, you'd execute the statement "SCHTASKS /Run [/S system [/U username [/P password]]] /TN taskname[/b]"

      Hope that helps you out.

      GuruGary



        Adviser
        Re: Run exe on remote machine
        « Reply #3 on: June 08, 2006, 11:40:16 PM »
        Solutions by Cameron and Ghostdog are good.  Also look at the AT.EXE command, or even better, get SOON.EXE which is a free download from Microsoft.