Send a Message to a Telnet Session

Applies To: Windows 7, Windows 8, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Vista

You can use this procedure to send a message to a user connected to your Telnet server.

Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure.

To send a message to a Telnet session

  • At a command prompt, type the following, and then press ENTER:

    tlntadmn [\\server] -m {SessionID | all}"message"

    Output similar to the following is displayed on the targeted sessions. The first line tells the user where the message is coming from, and the second line is the message.

    message from the administrator at server on 9/12/2006 10:53:27 AM
    message
    

Parameters

Value Description

\\server

The name of the computer running Telnet Server that you want to send the message from. If this parameter is not present, then the command runs against the Telnet Server on the local computer.

-m

Specifies that you want to send a message to a specific session ID, or to all sessions currently on the Telnet server.

SessionID | all

Specifies the session ID to which the message is to be sent. If you use the keyword all instead of a session ID, then all current sessions receive the message.

"message"

The message you want sent to the Telnet clients.

Formatting legend

Format Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Additional considerations

  • Tlntadmn.exe must be run at a command prompt that was opened by using the Run as administrator option. If you do not run it at an elevated command prompt, you receive an Access is denied message.

  • The Tlntadmn.exe tool is installed with Telnet Server, so it might not be present on a computer that does not have Telnet Server installed.

  • You can determine Telnet session IDs by using the tlntadmn -s command. See Display Information About Current Telnet Sessions.

See Also

Concepts

Disconnect a Telnet Session
Configure the User's Session with Login.cmd