telnet [\\RemoteServer]
\\ RemoteServer : Specifies the name of the server to which you want to connect.
/? : Displays help at the command prompt.
To stop Telnet Client
quit
none
To connect Telnet Client to a remote computer
open [\\RemoteServer] [Port]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
Port : Specifies the port that you want to use. If you do not specify a port, the default port is assumed.
To connect to remote server Redmond through port number 44, type:
o redmond 44
To disconnect Telnet Client from a remote computer
close [\\RemoteServer]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
To disconnect from remote server Redmond, type:
c redmond 44
To set Telnet Client options
set [\\RemoteServer] [ntlm] [localecho] [term {ansi | vt100 | vt52 | vtnt}] [escape Character] [logfile FileName] [logging] [bsasdel] [crlf] [delasbs] [mode {console | stream}] [?]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
ntlm : Turns on NTLM authentication if it is available on the remote server.
localecho : Turns on local echo.
term { ansi | vt100 | vt52 | vtnt } : Sets the terminal to the specified type.
escape Character : Sets the escape character. 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 CTRL while you type the character that you want to assign.
logfile FileName : Sets the file to be used for logging Telnet activity. The log file must be on your local computer. Logging begins automatically when you set this option.
logging : Turns on logging. If no log file is set, an error message appears.
bsasdel : Sets BACKSPACE to be sent as delete.
crlf : Sets the new line mode, which causes the ENTER key to send 0x0D, 0x0A.
delasbs : Sets DELETE to be sent as backspace.
mode { console | stream } : Sets the mode of operation.
? : Allows you to view the complete syntax for this command.
To send Telnet Client commands
send [\\RemoteServer] [ao] [ayt] [esc] [ip] [synch] [?]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
ao : Aborts output command.
ayt : Sends an “Are you there?” command.
esc : Sends the current escape character.
ip : Interrupts the process command.
synch : Performs the Telnet sync operation.
? : Allows you to view the complete syntax for this command.
To view the current settings for the Telnet client
display
none
To use tlntadmn commands at the command prompt
To administer a computer running Telnet Server
tlntadmn [\\RemoteServer] [start] [stop] [pause] [continue]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
start : Starts Telnet Server.
stop : Stops Telnet Server.
pause : Interrupts Telnet Server.
continue : Resumes Telnet Server.
/? : Displays help at the command prompt.
To administer Telnet sessions
tlntadmn [\\RemoteServer] [-s] [-k{SessionID | all}] [-m {SessionID | all} “Message“]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
-s : Displays active Telnet sessions.
-k { SessionID | all } : Terminates sessions. Type the session ID to terminate a specific session, or type all to terminate all 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 (that is, “Message“).
/? : Displays help at the command prompt.
To set logging options on a computer running Telnet Server
tlntadmn [\\RemoteServer] config [auditlocation={eventlog | file | both}] [audit=[{+ | –}admin][{+ | –}user][{+ | –}fail]]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
auditlocation= { eventlog | file | both } : Specifies whether to send event information to Event Viewer, to a file, or to both.
audit= [{ + | – } admin ][{ + | – } user ][{ + | – } fail ] : Specifies which events you want to audit (administrative logon events, user logon events, or failed logon attempts). To audit events of a particular type, type a plus sign (+) before that event type. To stop auditing events of a particular type, type a minus sign (-) before that event type.
/? : Displays help at the command prompt.
To send event information to Event Viewer, type:
tlntadmn config auditlocation=eventlog
To audit administrative logon events and failed logon attempts, type:
tlntadmn config audit=+admin +fail
To set the default domain on a computer running Telnet Server
tlntadmn [\\RemoteServer] config [dom=DomainName]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
dom= DomainName : Specifies the domain that you want to make the default domain.
/? : Displays help at the command prompt.
To make Redmond the default domain on your local server, type:
tlntadmn config dom=Redmond
To map the Alt key on a computer running Telnet Server
tlntadmn [\\RemoteServer] config [ctrlakeymap={yes | no}]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
ctrlakeymap= { yes | no } : Specifies whether you want Telnet Server to interpret CTRL+A as ALT. Type yes to map the shortcut key, or type no to prevent mapping.
/? : Displays help at the command prompt.
To set the maximum number of connections on a computer running Telnet Server
tlntadmn [\\RemoteServer] config [maxconn=PositiveInteger]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
maxconn= PositiveInteger : Sets the maximum number of connections. You must specify this number with a positive integer that is smaller than 10 million.
/? : Displays help at the command prompt.
To set the maximum number of failed logon attempts on a computer running Telnet Server
tlntadmn [\\RemoteServer] config [maxfail=PositiveInteger]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
maxfail= PositiveInteger : Sets the maximum number of failed logon attempts that a user is allowed. You must specify this number with a positive integer that is smaller than 100.
/? : Displays help at the command prompt.
To set the mode of operation on a computer running Telnet Server
tlntadmn [\\RemoteServer] config [mode={console | stream}]
\\ RemoteServer : Specifies the name for the server that you want to manage. If you do not specify a server, the local server is assumed.
mode= { console | stream } : Specifies the mode of operation.
/? : Displays help at the command prompt.
To set the Telnet port on a computer running Telnet Server
tlntadmn [\\RemoteServer] config [port=IntegerValue]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
port= IntegerValue : Sets the Telnet port. You must specify the port with an integer smaller than 1,024.
/? : Displays help at the command prompt.
To set the methods of authentication on a computer running Telnet Server
tlntadmn [\\RemoteServer] config [sec=[{+ | –}ntlm][{+ | –}passwd]]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
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.
/? : Displays help at the command prompt.
To set the time-out for idle sessions on a computer running Telnet Server
tlntadmn [\\RemoteServer] config [timeout=hh:mm:ss]
\\ RemoteServer : Specifies the name of the server that you want to manage. If you do not specify a server, the local server is assumed.
timeout= hh : mm : ss : Sets the time-out period in hours, minutes, and seconds.
/? : Displays help at the command prompt.