About Me

My photo
a Dynamic and Energetic guy.....

Monday, April 25, 2011

How to kill a remote session using command

Step 1. Gain enough privilege to kill RDP connection on the server.
net use \\servername_or_IP /USER:username “password“

Step 2. List the connection to a particular server and get session ID.
query session /server: servername_or_IP

Step 3.  Reset the session which you don’t need using ID of the session got from previous step
reset session [sessionID] /server:servername_or_IP

No comments:

My Masters