Query number of users logged onto Citrix server

I would like to query the number of users logged onto our Citrix server, and preferably be able to get the response from a DOS command.  Background is, I have a script that's logging free RAM and free CPU %, and I'd like to add onto that the number of users logged on at that time.

The OS is Windows Server 2003 SP1, and Citrix Metaframe Server 3.0 with the 2005.04 patch.

thanks
RLAIncAsked:
Who is Participating?
 
Scott AndersonPrincipal Support EngineerCommented:
There's a Command Line utility for that:  Query {option}  
In your situation, you'd use: query users    Will result in a list of users logged into and using Citrix at the time the command is run and also the state of the sessions (Active, Disconnected, etc...)

Options are:
Farm - Get farm-wide metrics, servers, server loads metrics, etc...
Process - Displays information about processes running on the current server.
Session - Displays information about sessions
User - described above

Good Luck,
Scooter
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.