Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How building a routine that ... (Citrix / TSE / Novell NAL)

Status
Not open for further replies.

Boony

Technical User
Jan 23, 2001
4
BE
Hello,

With what special commands on Citrix/TSE can I count the logged on users.
I want to build a routine in Windows Scripting host or a simple .CMD that waits until all the users, except me as user, are logged off in Terminal Server/Citrix. It's for applications distributed with Novell Application Launcher that must wait for all users (except one) to log on and push the server in install mode.

By disabling the winstations, no new user logons are accepted. This is back enabled after a reboot. Is it possible to turn it off also after a reboot ?
 
We're not going to use Kixstart ....
We stay with .cmd and WSH

It's possible to query users "Query User", I think I will work around that .....

Thx
 
Hey Boony,

There is a QUSER.EXE utility in Terminal Server that output's user session statistics (i.e. active users, disconnected users, etc). You may be able to output the results to a file, and use a third party utility to perform a count on records that are Active.

Ruster.
 
How about:

QUSER /SERVER:<ServerName> | FIND /C &quot;Active&quot;

QUSER /SERVER:<ServerName> displays alle sessions on server <ServerName>

FIND /C &quot;Active&quot; Counts all lines with the keyword &quot;Active&quot;
(Keyword may have to be changed, depending on language >:):O>)

Example:
M:\>QUSER /SERVER:CSDT17 | FIND /C &quot;Active&quot;
41
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top