Home / Microsoft / Microsoft DOS / Run exe on remote machine
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Run exe on remote machine  (Read 1576 times)
99miles
Guest
« 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!
IP logged
ghostdog74
Mentor



Thanked: 26
Posts: 1,511


« 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
IP logged

CameronY
Intermediate



Posts: 134


« 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.
IP logged
GuruGary
Adviser



Posts: 771




« 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.
IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Run exe on remote machine « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.108 seconds with 20 queries.