run kill in remote terminal servers

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.
 
J

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.
 
H

Herb Martin

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.")
 
H

Herb Martin

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.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top