psexec

ben chi(f4)

2[H]4U
Joined
Mar 4, 2008
Messages
2,339
Hello all!

I have a question for your experts.

I have 25 Windows XP SP2 running on my ESX server (all of them are on and running). I need to be able to psexecute a command in cmdprompt let's say:

c:\directory>run this command

then I need to be able to kill that process all at once on all 25 machines. Would I be able to do something like this in psexecute?
 
All at once? Probably not, but you will be able to execute all the commands and then kill the processes. Timing will just be off.
 
Very nice! Thank you. I was able to the same process on multiple machines but I wasn't able to start the process with arguments.

Now, in the Program box... do I type the path of the program of the box I'm using PSEXEC on?

so

psexec.exe \\ipaddressofbox -u -p c:\path to process.exe "argumentsforprocess"
 
There is a seperate box for arguments, just under the program box
 
Yeah tried that, no dice. =[ Any suggestions? I'll keep tinkering to see what happens. Does the program box indicate it's pointing to the process on the machine I'm remoting to?
 
it refers to a program on the PC running PSEXEC, so put your cmd in a .bat file and run it that way
 
Create a batch file with a for loop. You can use taskkill to kill the application.
 
Back
Top