Post date: Dec 15, 2014 10:16:57 AM
To logoff a remote session on another 2003/2008/2012 server using "qwinsta" command
Open a command prompt.
Run the command "qwinsta /server servername". This will list all the session IDs on the remote server.
Run the command "rwinsta /server servername sessionID". This will logon the remote session.