RESET SESSION / RWinSta

Reset (delete) a Remote Desktop Session.

Syntax
      RESET SESSION {SessionName | SessionID} [/server:ServerName] [/v]

Key
   SessionName The name of the session that you want to reset.
               To determine the name, use query session

   SessionID   The ID of the session that you want to reset.

   /server:ServerName
               The Remote Desktop Host server containing the session to be reset.
               The default is the current RD Session Host server

   /?          Display help.

Reset Session causes the device to close and then to reopen. Use reset session when the session malfunctions or when the session appears to be down. When you reset a session, the underlying hardware is reset and the drivers and data are reloaded and reinitialized.

Resetting a user's session without warning the user, can result in the loss of data at the session.

Only reset a session when it malfunctions or appears to have stopped responding.

You can always reset your own sessions, but you must have Full Control access permission to reset another user's session. Users can also reset sessions of other users who log on with the same name. This is by design in version 4.0 of Terminal Server. To avoid this, give users unique logon names or deny access to the RESET SESSION utility.

RESET SESSION is a synonym for AND replaces RWINSTA from Citrix Winframe. It resets the subsystem hardware and software of the session to known initial values.

RDP Permissions are set under:

Terminal Services Configuration | Connections | Properties | Permissions | Advanced | Permissions

Examples

Reset the session designated rdp-tcp#6:

C:\> reset session rdp-tcp#6

Reset the session that uses session ID 3:

C:\> reset session 3

“The crowds in the big towns, with their mild, knobby faces, their bad teeth and gentle manners solid breakfasts and gloomy Sundays, smoky towns and winding roads, green fields and red pillar boxes” ~ George Orwell

Related:

Query Session - Display all sessions (TS/Remote Desktop)
Query TermServer - List all servers (TS/Remote Desktop)
LOGOFF - Log a user off
CHANGE - Change Terminal Server Session properties
MSTSC - Terminal Server Connection (Remote Desktop Protocol)


© Copyright SS64.com 1999-2013
Some rights reserved