How many users are logged on/connected to a server
Sometimes we may need to know how many users are logged on to a (file) server, like maybe when there is a performance degradation.
At the server's console itself, with native commands only:
At the server's console itself, with native commands only:
NET SESSION | FIND /C "\\"
Remotely, with the help of SysInternals' PSTools:
PSEXEC \\servername NET SESSION | FIND /C "\\"
By replacing
FIND /C "\\"
by FIND "\\"
(removing the /C
switch) you'll get a list of logged on users instead of just thenumber of users.
No comments:
Post a Comment