Who is on the Server?

Do you have a busy server that a lot of folks are always on?

Do you ever get this dreaded message indicating too many people are already on?

The terminal server has exceeded the maximum number of allowed connections.

 

Well me too so I created a little helper batch file to query who is on the server so I can message them to get off! :)

Here’s the .bat file contents so you can create your own and/or customize it:

cls
@ECHO OFF
@ECHO Determine Who is Logged into a Server  v1.0
@ECHO -------------------------------------------
@ECHO.
SET /p INPUT=Please enter server name: 
@ECHO.
query session /server:%INPUT%
@ECHO.
SET /p INPUT=Press any key to exit...

Screenshot:

 

Determine Who is Logged into a Server