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 do I get a report that logs the

Status
Not open for further replies.

jguillory

IS-IT--Management
Jun 7, 2001
60
US
How do I get a report that logs the total amount of concurrent users at one time on Metaframe? Thanks.
 
You could try this batch file (this one is written to get the number of users on two servers, but I'm sure you could modify it to suit!)

:: Count.bat

@echo off
:: Counts Users on Terminal Server.

set Countfile1=c:\temp\Countfile1.txt
set Countfile2=c:\temp\Countfile2.txt

echo Counting Users on Two Servers...
echo.

query user /server:WTS1 | find /c /i "active" > %Countfile1%
query user /server:WTS2 | find /c /i "active" > %Countfile2%

for /F %%i in (%Countfile1%) do set count1=%%i
for /F %%i in (%Countfile2%) do set count2=%%i

set /A total=%count1% + %count2%

echo WTS1 = %count1%
echo WTS2 = %count2%
echo.

echo Total = %total%
echo.

echo off
:: Cleanup
del /Q c:\temp\Countfile?.txt > nul

:end

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top