RE: Search for sessions
- From: "Vera Noest [MVP]" <vera.noest@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 17 Jan 2007 06:54:11 -0800
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?
- Follow-Ups:
- RE: Search for sessions
- From: Vera Noest [MVP]
- RE: Search for sessions
- Prev by Date: Re: Epson TM-T88IV Receipt Printer problem
- Next by Date: Re: RPC Server Is Unavailable on 2003 TS but not on 2000 TS
- Previous by thread: Re: Terminal Services client config
- Next by thread: RE: Search for sessions
- Index(es):
Relevant Pages
|