| Doc Type | Tricks & Tips |
| Email Setting | Make Public |
| Email Address | steve dot robinson at notes411 dot com |
| Keep informed? | Yes |
| Author | Steven Charles Robinson |
| Company Name | Notes411 |
| Category | Microsoft |
| Modified | 13/07/2006 15:17:54 |
| Subject | How to kill terminal server sessions. Utilities for terminal services: qwinsta and rwinsta |
Often Windows 2000 boxes exist in your organisation
that do not have licensed Terminal Services running. This means you can
only have two active sessions. Sometime more than one person may leave
sessions live by not logging out. To kill these session there are two utilities
that can be used via DOS prompt from a remote PC to remove the offending
sessions.
1. qwinsta: queries the sessions
qwinsta /?
Display information about Terminal Sessions.
QUERY SESSION [sessionname | username | sessionid]
[/SERVER:servername] [/MODE] [/FLOW] [/CONNECT] [/COUNTER]
sessionname
Identifies the session named sessionname.
username
Identifies the session with user username.
sessionid
Identifies the session with ID sessionid.
/SERVER:servername The server
to be queried (default is current).
/MODE
Display current line settings.
/FLOW
Display current flow control settings.
/CONNECT
Display current connect settings.
/COUNTER
Display current Terminal Services counters information.
2. rwinsta: removes the sessions
rwinsta /?
C:\Documents and Settings\stever>rwinsta
/?
Reset the session subsytem hardware and software
to known initial values.
RESET SESSION {sessionname | sessionid} [/SERVER:servername]
[/V]
sessionname
Identifies the session with name sessionname.
sessionid
Identifies the session with ID sessionid.
/SERVER:servername The server
containing the session (default is current).
/V
Display additional information.
|