Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Communicates with a computer running the telnet Server service.


telnet [/a] [/e <EscapeChar>] [/f <FileName>] [/l <UserName>] [/t {vt100 | vt52 | ansi | vtnt}] [<Host> [<Port>]] [/?]


Parameter Description
/a attempt automatic logon. Same as /l option except uses the currently logged on user s name.
/e Escape character used to enter the telnet client prompt.
/f File name used for client side logging.
/l Specifies the user name to log on with on the remote computer.
/t {vt100 | vt52 | ansi | vtnt} Specifies the terminal type. Supported terminal types are vt100, vt52, ansi, and vtnt.
[] Specifies the hostname or IP address of the remote computer to connect to, and optionally the TCP port to use (default is TCP port 23).
/? Displays help at the command prompt. Alternatively, you can type /h.


  • You must install the telnet client software before you can run this command. For more information, see Installing telnet.
  • You can run telnet without parameters to enter the telnet context, indicated by the telnet prompt (Microsoft telnet>). From the telnet prompt, you can use telnet commands to manage the computer running the telnet client. ## Examples Use telnet to connect to the computer running the telnet Server Service at telnet Use telnet to connect to the computer running the telnet Server Service at on TCP port 44 and log the session activity in a local file called telnetlog.txt telnet /f telnetlog.txt 44 ## additional references
  • Installing telnet
  • telnet Technical Reference
  • Command-Line Syntax Key