tlntadmn
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Administers a local or remote computer that is running the telnet Server Service. If used without parameters, tlntadmn displays the current server settings.
This command requires you to 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 can't use this method, you can use the -u and -p parameters to provide administrative credentials for the remote computer.
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. |
Examples
To configure the idle session timeout to 30 minutes, type:
tlntadmn config timeout=0:30:0
To display active telnet sessions, type:
tlntadmn -s