Skip to main content
Tlntadmn

Published: April 17, 2012

Updated: April 17, 2012

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

Administers a local or remote computer that is running the Telnet Server Service. For examples of how this command can be used, see Examples.

Syntax
tlntadmn [<ComputerName>] [-u <UserName>] [-p <Password>] [{start | stop | pause | continue}] [-s {<SessionID> | all}] [-k {<SessionID> | all}] [-m {<SessionID> | all} “<Message>”] [config [dom = <Domain>] [ctrlakeymap = {yes | no}] [timeout = <hh>:<mm>:<ss>] [timeoutactive = {yes | no}] [maxfail = <Attempts>] [maxconn = <Connections>] [port = <Number>] [sec {+ | -}NTLM {+ | -}passwd] [mode = {console | stream}]] [-?] 
Parameters

 

Parameter Description

<ComputerName>

Specifies the name of the server to connect to. The default is the local computer.

-u <UserName> -p <Password>

Specifies administrative credentials for a remote server that you want to administer. This parameter is required if you want to administer a remote server to which you are not logged on with administrative credentials.

start

Starts the Telnet Server Service.

stop

Stops the Telnet Server Service

pause

Pauses the Telnet Server Service. No new connections will be accepted.

continue

Resumes the Telnet Server Service.

-s {<SessionID> | all}

Displays active Telnet sessions.

-k {<SessionID> | all}

Ends Telnet sessions. Type the Session ID to end a specific session, or type all to end all the sessions.

-m {<SessionID> | all} “<Message>”

Sends a message to one or more sessions. Type the session ID to send a message to a specific session, or type all to send a message to all sessions. Type the message that you want to send between quotation marks.

config dom = <Domain>

Configures the default domain for the server.

config ctrlakeymap = {yes | no}

Specifies if you want the Telnet server to interpret CTRL+A as ALT. Type yes to map the shortcut key, or type no to prevent the mapping.

config timeout = <hh>:<mm>:<ss>

Sets the time-out period in hours, minutes, and seconds.

config timeoutactive = {yes | no

Enables the idle session timeout.

config maxfail = <Attempts>

Sets the maximum number of failed logon attempts before disconnecting.

config maxconn = <Connections>

Sets the maximum number of connections.

config port = <Number>

Sets the Telnet port. You must specify the port with an integer smaller than 1024.

config sec {+ | -}NTLM {+ | -}passwd

Specifies whether you want to use NTLM, a password, or both to authenticate logon attempts. To use a particular type of authentication, type a plus sign (+) before that type of authentication. To prevent using a particular type of authentication, type a minus sign (-) before that type of authentication.

config mode = {console | stream}

Specifies the mode of operation.

-?

Displays Help at the command prompt.

Remarks
  • To display the server settings, type tlntadmn without any parameters.

  • To use the tlntadmn command, you must log on to the local computer with administrative credentials. To administer a remote computer, you must also provide administrative credentials for the remote computer. You can do so by logging on to the local computer with an account that has administrative credentials for both the local computer and the remote computer. If you cannot use this method, you can use the -u and -p parameters to provide administrative credentials for the remote computer.

Examples

Configure the idle session timeout to 30 minutes.

tlntadmn config timeout=0:30:0

Display active Telnet sessions.

tlntadmn -s