batch telnet.

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

Pegasus \(MVP\)

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

Pegasus \(MVP\)

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

Mark R. Blain

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/>
 

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

Similar Threads

Sending Telnet Command via TCP/IP Socket 1
Automating telnet login 1
Star Wars via Telnet. 1
smtp telnet? 5
Telnet 2
About ntlm authentication 0
important 0
Telnet paste from Windows 2000 to Unix problem 4

Top