Tuesday, June 11, 2013

How to logoff RDP Connections in Windows

Please use below commands to log off remote Windows RDP connections.

C:\>query session /server:SERVERNAME
Or
C:\>qwinsta /server:SERVERIP

To Kill a session identified previously:


C:\>reset session 2 /server: SERVERIP
Or
C:\>rwinsta /server: SERVERIP SESSIONID



If you want to see additional information you can run the command above with [/v]
C:\>reset session 2 /server: SERVERIP  /v

No comments: