大网数据广告活动
Windows排障命令

tlntadmn

· 52CE 我爱测

Reference article for the tlntadmn command, which administers a local or remote computer, running the telnet Server Service.

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}`
-k `{<sessionID> all}`
-m `{<sessionID> all} <message>`
config dom = <domain> Configures the default domain for the server.
config ctrlakeymap = `{yes no}`
config timeout = <hh>:<mm>:<ss> Sets the time-out period in hours, minutes, and seconds.
config timeoutactive = `{yes no}`
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 {+
config mode = `{console stream}`
-? 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

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 10/16/2017
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。