You are here: TWiki> Online Web>ResetTerminalServerSession (2010-03-02, ebonacco)
Tags:
create new tag
, view all tags

Reset your terminal server session (remote desktop session) remotely

You can close a remote session "remotely".

From any windows pc, you can close a remote session opened in an another server.

For example, if you are working on lbts03 (or mudaqc01w, does not matters) and your session is completely stucked and you cannot send any other command to the machine though the rdp session you may want close this session and open a new one.

To do it you can login on another windows pc, lbts for instance, and open a command prompt in order to execute the two following commands (the first one to understand which session you want to kill, and the second one to kill the session):

query session YOURUSERNAME /server:SERVER_WHERE_THE_SESSION_TO_BE_CLOSED_IS_RUNNING

reset session SESSIONID /server:SERVER_WHERE_THE_SESSION_TO_BE_CLOSED_IS_RUNNING

Example:

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp. 

U:\>query session ethomas /server:ts04
SESSIONNAME USERNAME <strong>ID</strong> STATE TYPE DEVICE
ethomas <strong>2</strong> Disc rdpwd 
U:\>reset session <strong>2</strong> /server:ts04 
U:\>query session ethomas /server:ts04
No session exists for ethomas 
U:\> 

You can open a command promt pressing "windows key + r", then you have to digit "cmd" and press "OK"

-- Main.ebonacco - 02 Mar 2010

Topic revision: r1 - 2010-03-02 - ebonacco
 

TWIKI.NET
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback