How to execute a program remotely (easily)

Mars

Honorary Master
Joined
Feb 4, 2006
Messages
11,452
Reaction score
1,149
Location
Cape Town
Currently my wife is doing her work on our Pastel and pos server directly. The problem is that trying to work on the machine while everything is running is getting tedious for her.
I have set up another pc for her to work on and I want her current pc to be come a dedicated server.

The problem comes in that when we place an order with our supplier a program needs to be run on our pos server to push the order through to our supplier. It cannot be run from any of the client machines.

I have found PxExec that will run the file remotely, but I just keep getting an "Access is denied" error.

Is there an easier way?
 
Probably the easiest way would be to map the unc path on the pos server (\\<server>\c$\<folder>) to the client machine, and then to run the exe from that window.

You may need to set up all file references in the order app to be unc rather than drive based. e.g. if you use c:\pos\xyz.db on the pos (192.168.0.1) server, it should be referenced as \\192.168.0.1\c$\pos\xyz.db even on the pos server. I'm using IP addresses as you probably don't have a DNS server.

Hope that this makes some kind of sense!!

Good luck!
 
Psexec needs to be given a username and password to execute under. Running on a remote machine in workgroup mode wont work by default. Read the manual on how to pass authentication. I would add this to a batch file to make it quicker. The above idea using the unc mapping will not work correctly
 
Top
Sign up to the MyBroadband newsletter
X