Telnet: set


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

Sets options. For examples of how this command can be used, see Examples.


set [bsasdel] [crlf] [delasbs] [escape <Char>] [localecho] [logfile <FileName>] [logging] [mode {console | stream}] [ntlm] [term {ansi | vt100 | vt52 | vtnt}] [?]





Sends Backspace as a Delete.


Sends CR & LF (0x0D, 0x 0A) when the Enter key is pressed. Known as “New line mode”.


Sends Delete as a Backspace.

escape <Character>

Sets the escape character used to enter the Telnet client prompt. The escape character can be a single character, or it can be a combination of the CTRL key plus a character. To set a control-key combination, hold down the CTRL key while you type the character that you want to assign.


Turns on local echo.

logfile <FileName>

Logs the current Telnet session to the local file. Logging begins automatically when you set this option.


Turns on logging. If no log file is set, an error message appears.

mode {console | screen}

Sets the operation mode.


Turns on NTLM authentication.

term {ansi | vt100 | vt52 | vtnt}

Sets the terminal type.


Displays Help for this command.


  1. You can use the unset command to turn off an option that was previously set.

  2. On non-English versions of Telnet, the codeset <option> is available. Codeset <option> sets the current code set to an option, which can be any one of the following: Shift JIS, Japanese EUC, JIS Kanji, JIS Kanji (78), DEC Kanji, NEC Kanji. You should set the same code set on the remote computer.


Set the log file and begin logging to the local file tnlog.txt

set logfile tnlog.txt

Additional references