Disconnect a Telnet Session

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

You can use this procedure to disconnect a user from your Telnet server.

Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure.

To disconnect a user from a Telnet session

  • At a command prompt, type the following, and then press ENTER:

    tlntadmn [\\server] -k {SessionID | all}

    The user's Telnet session is disconnected, with output similar to the following displayed:

    Administrator on the server has terminated this session.
    

Parameters

Value Description

\\server

The name of the computer running Telnet Server that you want to send the message from. If this parameter is not present, then the command runs against the Telnet Server service installed on the local computer.

-k

Specifies that you want to disconnect a specific session ID, or all sessions currently on the Telnet server.

SessionID | all

Specifies the session ID that you want to disconnect. If you use the keyword all instead of a session ID, then all current sessions are disconnected.

Formatting legend

Format Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Additional considerations

  • Tlntadmn.exe must be run at a command prompt that was opened by using the Run as administrator option. If you do not run it at an elevated command prompt, you receive an Access is denied message.

  • The Tlntadmn.exe tool is installed with Telnet Server, so it might not be present on a computer that does not have Telnet Server installed.

  • You can determine Telnet session IDs by using the tlntadmn -s command. See Display Information About Current Telnet Sessions.

See Also

Concepts

Send a Message to a Telnet Session
Configure the User's Session with Login.cmd