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.

RWinSta is a synonym for RESET SESSION

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

You should reset a session only 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.

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)



Back to the Top

© Copyright SS64.com 1999-2013
Some rights reserved