Windows DatabaseebooksStatistical Information

LWE10298 : Howto count the logged on users on a terminal server from the command line using an ica session

Symptom:

You want an easy way to count the logged on users on a terminal server from the command line

Cause:

none

Solution:

If you want to count the logged on ICA sessions on a terminal server you can use the quser command. This command shows you the users logged on but you will have to count them yourself. A relatively easy way to find out how much users are currently on your server you can use the find command with the /N parameter. This will not show you the right result! If you use it twice, the second output will show you the right result!

e.g.

quser|find /i "ica"|find /i "ica" /N

if you would just use

quser|find /i "ica" /N

Your result will show the lines where ICA has been found.

Just try

quser|find /i "ica"|find /i "ica" /N

and you will understand what I mean.

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
Copyright © 2004-2011 Lubby (V3.0.10 Aug 2011)
Sponsored by Keskon.
Statistical information by Google Analytics