starclick

Wednesday 6 November 2013

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:
    NET SESSION | FIND /C "\\"
Remotely, with the help of SysInternalsPSTools:
    PSEXEC \\servername NET SESSION | FIND /C "\\"
By replacing FIND /C "\\" by FIND "\\" (removing the /Cswitch) you'll get a list of logged on users instead of just thenumber of users.

No comments:

Post a Comment

Every Admin Should Know These Commands Active Directory 1.   To quickly list all the groups in your domain, with members, run this c...