RE: Search for sessions



You could get a bit creative with the qwinsta and rwinsta commands.

Basic command line to run from your client for sessions on a single
server would be:

qwinsta <username> /SERVER:<servername>

To run this against all servers, you could create a simple textfile,
let's say "servers.txt", and get the server name from this file.
Something like:

for /F %i in (servers.txt) do qwinsta <username> /SERVER:%i

That should give you all sessions for this user on all servers.
Then do the same, now with the "rwinsta" command, to reset all
sessions.

See Help for the complete syntax and all options for these commands.

Note: if you run these commands in a batch file, you have to replace
"%i" with "%%i".

_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

=?Utf-8?B?Um9hY2g=?= <Roach@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote on 16
jan 2007 in microsoft.public.windows.terminal_services:

This could be a great option.

Does anyone know of anything that may already be included in the
OS?
.



Relevant Pages

  • RE: RPc server is unavailable since SP1
    ... After these commands run successfully, ... RPc server is unavailable since SP1 ... >> when the member server update certificate you get the error message RPC ... >> interface security settings before the installation of SP1 will be lost. ...
    (microsoft.public.windows.server.sbs)
  • Re: Search for sessions
    ... Before you resetting any sessions, I would suggest at least to let the users know their sessions will be reseted within certain time, so they can properly save their work. ... MCSE, CCEA, Microsoft MVP - Terminal Server ... commands. ... if you run these commands in a batch file, ...
    (microsoft.public.windows.terminal_services)
  • [NT] NetWin DMail Authentication Bypass (dlist.exe) and Format String (dsmtp.exe)
    ... either be used as a small personal mail server or as a 10 Million user ISP ... password hash) when sending the administrative commands. ... the DList server using a numeric hash of the administrative password. ...
    (Securiteam)
  • RE: copy permissions from one user to another?
    ... THIS STORED PROCEDURE GENERATES COMMANDS ... -- ADD USER TO SERVER ... -- CREATE TABLE TO HOLD LIST OF USERS IN CURRENT DATABASE ... -- SET COMMAND TO FIND USER PERMISSIONS HAS IN CURRENT DATABASE ...
    (microsoft.public.sqlserver.security)
  • Re: copy permissions from one user to another?
    ... THIS STORED PROCEDURE GENERATES COMMANDS ... -- ADD USER TO SERVER ... -- CREATE TABLE TO HOLD LIST OF USERS IN CURRENT DATABASE ... -- GRANT USER ACCESS TO SERVER ROLES ...
    (microsoft.public.sqlserver.security)