Sometimes you may need to know how many users are logged on to a (file) server, like when there is a performance issue.
At the server's console itself with native commands only:
Create a batch fileCreate a new text document and save it with the name "ServerUsers.bat" |
|
|
Type ScriptEnter the following text in the batch file@echo off rem ________________________________ echo Amount of connected users on this server: net session | find /c "\\" PAUSE rem ________________________________ |
|
|
Save batch fileSave your batch file on the desktop of the server you need the information from |
|
|
Run ScriptDouble click the file to run the script. You should get a message showing the number of users connected to the server |