Disconnecting other users from a server through command line

If you tried to login to a server and it says, exceeded the no of users connecting to the server. We can logoff other users connected to the server.
1. Login to the server with admin credentials.
C:\Users\surya>query session /server:servername

 SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
 services                                    0  Disc
 console                                     1  Conn
 rdp-tcp#0         alertarumugam             2  Active  rdpwd
 rdp-tcp#1         vedigundumurukesan         3  Active  rdpwd
 rdp-tcp                                 65536  Listen

C:\Users\surya>reset session 3 /server:servername

This will logoff the user vedigundumurukesan from the server so that we can login to the server.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s