Telnet commands

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2


Telnet commands

The Telnet commands allow you to communicate with a remote computer that is using the Telnet protocol. You can run Telnet without parameters in order to enter the Telnet context, indicated by the Telnet prompt (Microsoft Telnet>). From the Telnet prompt, use the Telnet commands to manage a computer running Telnet Client.

The Telnet Client command prompt accepts the following commands:

Command Description


Use open hostname to establish a Telnet connection to a host.


Use the close command to close an existing Telnet connection.


Use the display command to view the current settings for Telnet Client.


Use the send command to send commands to the Telnet server. The following commands are supported:


Abort output command.


"Are you there?" command.


Sends the current escape character.


Interrupt process command.


Performs the Telnet synch operation.


Sends a break signal.

Anything other than one of the commands listed above will be sent as a string to the Telnet server. For example, send abcd will send the string abcd to the Telnet server, which will echo the string in the Telnet session window.


Use the quit command to close Telnet Client.


Use the set command with one of the following arguments to configure Telnet Client for the current session.


Backspace will be sent as delete.

codeset option

Available only when the language is set to Japanese. Set the current code set to option, which can be one of the following:

  • Shift JIS

  • Japanese EUC

  • JIS Kanji

  • JIS Kanji (78)

  • DEC Kanji

  • NEC Kanji

The same code set should be set on the remote computer. By default, Telnet Client uses a raster font. Before accessing a remote computer using one of these code sets, you must configure Telnet Client to use a TrueType font to ensure that characters will display properly.


New-line mode; causes the RETURN key to send 0x0D, 0x0A.


Delete will be sent as backspace.

escape character

Switches from Telnet session mode to the Telnet command mode. While in Telnet command mode, press ENTER to return to Telnet session mode.


Turns on localecho.

logfile name

Specifies the name of the file to which the Telnet log is written for this session. If you do not specify the path of the file, it is created in your current directory. Specifying a log file also turns on logging.


Turns on logging for this session.

mode {console | stream}

The mode of operation.


Turns on NTLM authentication.

term {ansi | vt100 | vt52 | vtnt}

The type of terminal you want Telnet Client to emulate.


Displays Help information for set.


Use unset to turn off an option previously set using the set command.


Use the status command to determine whether the computer running Telnet Client is connected.


Displays Help information.

For more information about Telnet Server commands, see Telnet Command-line Reference for Telnet Server.