Link to home
Start Free TrialLog in
Avatar of jdhackett
jdhackettFlag for Ireland

asked on

List of Logged on Terminal Server Users

Some users are not logging out of their Terminal Server session at home time.
Now, if I log onto the Terminal Server as Admin, and launch Task Manager, I can get a list of uers.
However, I'd rather run this at 8pm. Is there a way to get a report of the logged on users as at 8pm?
Either through some Server 2003 tool, or through VB.net.
Thanks
Avatar of SreejithG
SreejithG
Flag of India image

If you are having SSh server running on the machine, you can connect to the machine using ssh and run the command "query session" which will give the following details
SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE.

Try to automate this
Create a little batch file..
with content:

query session > loggedonuser.log

This will create a file with the current status of the logged on users in the path that the batch file was launched from.. You can then schedult this and look at it remotely...
Avatar of jdhackett

ASKER

Good stuff. Is there a way I could get the date into the file name, so I have a different log per day?
ASKER CERTIFIED SOLUTION
Avatar of JohnGerhardt
JohnGerhardt
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial