Is this a Microsoft terminal server or a citrix server?

If it is Microsoft then you can get a list of all users on the server if you run the command below from a console window.
It writes all info to tsusers.txt on the d drive but you can change that if needed.

This is not kix code but can easily be converted to kix. The code shown below can be run from a command window.
 Code:
query user >d:\tsusers.txt


The output file looks like this:
 Code:
USERNAME		SESSIONNAME		ID	STATE	IDLE TIME	LOGON TIME
administrator					0	Console		5			02 - Apr-09 13:01
Username1		rdp-tcp#321		43	Active		.			14 - Apr-09 08:36
Username2		rdp-tcp#322		44	Active		1			14 - Apr-09 08:54


You could make a script that process this output and send you the results by e-mail (at least that is what I did).
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.