Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm developing a program and I need to upload my xyz.exe file to many host machines and execute them frequently.

I need a server-client tool to do it as below steps after an update signal from my PC:

  1. Those host machines should kill any running processes with name xyz.exe.
  2. Download my new xyz.exe.
  3. Then execute new xyz.exe.

I know about some tools like PsExec, but I need a tools with better user-interface and more powerful.

Is there any tool to do it ?

UPDATE: The systems are in a same LAN, OS is windows (XP or 7), No full remote access is needed. I'm a developer and my program should run in remote hosts and I'm testing my application.

share|improve this question
More details would be useful. Are these systems on the same lan? Do you have some form of remote access? What Oses are the client PC? I'd also note this seems almost like the sort of behaviour that might end badly.. but i'll assume this has nothing to do with malware. – Journeyman Geek Apr 12 '12 at 13:42
What exactly is wrong about PsExec? You can't get more powerful than that... – Tom Wijsman Apr 12 '12 at 14:03
@TomWijsman: First two steps. – deepmax Apr 12 '12 at 14:08
@MasoudM.: Can be done with PsExec using commands that come with Windows. – Tom Wijsman Apr 12 '12 at 14:11
@TomWijsman: Yes, but I need a tool with easier steps – deepmax Apr 12 '12 at 14:14
up vote 4 down vote accepted

You can do that all with psexec, note how taskkill and robocopy come with Windows:

psexec \\TARGET "taskkill /F /IM xyz.exe /T"
psexec \\TARGET "robocopy SOURCE_PATH TARGET_PATH xyz.exe"
psexec \\TARGET "TARGET_PATH\xyz.exe"

If any of these are unavailable, I'm pretty sure you can find older alternatives that come with Windows. xcopy for instance is the predecssor of robocopy and is still available even on Windows 8.

share|improve this answer
+1 : good way.. – deepmax Apr 12 '12 at 14:18
@MasoudM.: If you don't want to belong on psexec and completely use only what Windows provides you, you could look into using a vbscript. I just don't see why you would grasp to a GUI if you want this to be automated, command-line tools are powerful at that... – Tom Wijsman Apr 12 '12 at 14:21
I know, and I prefer it. but in our office there are other people with various level of skill. Maybe I should write a program myself or force them use this script :-) – deepmax Apr 12 '12 at 14:32

If you don't want to use psexec, an alternative would be to create an event using task scheduler that would watch a user's public folder and when it gets updated, kill the current xyz.exe and run the new one. Then every time you created a new version all you would have to do would be put it in the user's networked public folder.

share|improve this answer

If you are open for a more professional alternative, you could use OPSI. Simply download the OPSI server appliance (it's a VM based on Linux), run the setup stuff and include the Windows clients.

You can then manage your clients within the web-interface of OPSI and do all that nasty stuff you want to do.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .