Those of us that administer remote machines through terminal services will no doubt have encountered times when they get disconnected but the terminal server session continues on. This would be no bit deal if it wasn't for the fact that there can only be a maximum of 2 sessions (assuming the Administration mode). Once both sessions get used up there is no more remote connection and one can't administer the machine.
Fortunately there is a command line way to enable reset of a session. Log in to the remote machine via Telnet, obviously this assumes you have Telnet running on the remote machine, and use the RESET SESSION command as follows:
RESET SESSION 1
In this example, 1 is the Session ID. The Session ID is usually 1 or 2 since you can only have two sessions in Administration mode. However, to view a list of current sessions use the QUERY SESSION command:
QUERY SESSION
This will list out all the sessions on the computer along with their state, such as how long they have been idle. Note that the help on the reset command is not very helpful unless you enter the full
RESET SESSION /?
7:01:39 AM
|