run kill in remote terminal servers

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

Hello,
We have more than one windows 2000 terminal servers and I
need to run "kill.exe -f "windows title"" in all servers
while batch is running in one of them. How can I run it
remotely. I used "rsh" but this requires a deamon running
on the target and it is not free.
Any help?
Thanks,
Jim.
 
Thanks Herb,
But pskill doesa not seem that ot kills with window's
title. With Kill I am actually kiling the window.
Thanks,
Jim.
 
We have more than one windows 2000 terminal servers and
I
I overlooked the Window "TITLE" requirement. Telnet
is free (included with Win2000+) and probably much more
secure but of course it requires running a service (daemon),
but this can be turned on and off from other services like
psservice <grin>

So, turn it on (no daemon required) and run the script then
turn it back off if you wish (Telnet Service must be set to
at least "manual" not "disabled.")
 
I may have to take this back -- there are telnet clients
which can be scripted from a batch file (I think even the
older MS client command line version, i.e., not the previous
GUI nor the current text version.)

Two problems: 1) The current one (Win2000/ Win2003) does
seem to work correctly with redirected input, e.g., <cmd.txt

2) You really want to use this client since it supports NTLM
authentication rather than the traditional telnet use of clear text.

There are certainly scriptable telnet clients, including Perl
libraries but this one isn't working with....

telnet -a server <cmd.txt
Where cmd.txt contains:
y
dir c:\
exit

(The "y" is the answer to the prompt for sending password question.)
 
Back
Top