Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I run a process on a remote computer in a Peer to Peer Network.

I need to run a small program (as part of the Installation process) which reports back the Manufacturers Serial Number of the drive on which the modules were installed. I understand the dangers associated with this, BUT, None of my customers systems are connected to the Internet. (or will ever be without my say so) All terminals run Windows XP. Typical Network Size: 3 Computers, Max Size: 16, Min Size: 1.

Regards,

Bram :)
Posted
Updated 16-Dec-10 15:58pm
v2

1 solution

SOLUTION #1:
I heared about PsExec, but haven't tried it, give it a chance:
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

SOLUTION #2:
I personally love cygwin because of the nice linux commandline tools on windows. :) You can install cygwin on the client machines (this is a set of linux commandline utilities for windows) and setup ssh server on all of the client machines. Then you can connect to the machines using ssh (even from linux) and run commands remotely. Ssh server/client pairs can be set up so that the server automatically accepts particular clients (that have the right private key) using rsa key pairs. You must set up ssh servers on each client so that they automatically accept your machine without prompting for a password to facilitate automatization/scripting. I did this only with linux ssh servers, but it should be the same on windows/cygwin just google "ssh authorized_keys" to find a tutorial about setting up ssh servers that accept a specified client. Getting to know the basic use of ssh is very useful if you haven't used it yet!!!

I haven't tried PsExec, but with ssh you can run a commandline prog on the remote machine and you get back the text output of it on your local machine for sure.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900