Running remotely an app from a shared folder with PsExec
- by Stephane
I am actually not sure that this is possible. let's see:
I have a script that runs on a Build server. Let's name this server A.
It drops the bins to a shared folder on server B.
And I want to run the program on server C.
So using caspol I can allow the executable to be ran remotely.
that means from B I can run \C\shared\my.exe
What I want to do is from A run \C\shared\my.exe on B.
SysInternals\PsExec.exe -u username -p password -accepteula \\ServerC -i 0 -d -w \\ServerB\Nightly\Server \\ServerB\Nightly\Server\server.exe
The user has all the necessary rights.
But, the -w (working directory) options apparently wants a path relative to the server I point to.
Any idea?