batch telnet.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello.
I want to telnet a server in a remote location and then send a message to
everyone under that server's workgroup. I figured this can be done via first,
telnet the server and then, use net send command to send the message.

I have to do this several times a day. I was looking for a batch file that
would telnet, user name, password, net send, message, and exit.

I searched google and everything, but nothing seems to work.
Please suggest.
Thanks.
 
Amit said:
Hello.
I want to telnet a server in a remote location and then send a message to
everyone under that server's workgroup. I figured this can be done via first,
telnet the server and then, use net send command to send the message.

I have to do this several times a day. I was looking for a batch file that
would telnet, user name, password, net send, message, and exit.

I searched google and everything, but nothing seems to work.
Please suggest.
Thanks.

Use psexec.exe from www.sysinternals.com.
 
psexec.exe should work via the Internet too, provided that
you adjust your firewalls and your routers accordingly, but
I must admit that I could not get it to work either.

Since your task is to send messages, why don't you use
sendmail.exe to post a semaphore message to some dedicated
mailbox, then use getmail.exe to poll that mailbox? Both
tools are freely downloadable from the Internet. Doing it
like this has several advantages, e.g. that you can plant
a semaphore file even while a target machine is off the air.
 
I want to telnet a server in a remote location and then send a message to
everyone under that server's workgroup. I figured this can be done via first,
telnet the server and then, use net send command to send the message.

I have to do this several times a day. I was looking for a batch file that
would telnet, user name, password, net send, message, and exit.

Netcat (already suggested) makes the most sense, or you could switch
to a telnet program that allows scripting (TeraTerm, Putty, etc.), or
use an external scripting tool like AutoIt or Windows Scripting Host
to script the stock Windows 2000 telnet.exe. There's an example of
WSH telnet scripting at
<http://groups.google.com/[email protected]>
Bear in mind that the stock telnet allows NTLM authentication to help
keep your target server secure. Third-party clients may require you
to disable this feature:
<http://support.microsoft.com/kb/233069/EN-US/>
 
Back
Top