Running remotely an app from a shared folder with PsExec
Posted
by
Stephane
on Server Fault
See other posts from Server Fault
or by Stephane
Published on 2011-01-11T11:08:40Z
Indexed on
2011/01/11
11:55 UTC
Read the original article
Hit count: 326
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?
© Server Fault or respective owner