3

get used to the old world 'terminal session manager' but spent past hour trying to figure out equivalent in windows 2012 r2, all i need is to terminate my session on another server (as it is stuck somehow), google a bit but all I find is to how to setup the service, I just need a simple tool, or even a command line

please help!

1 Answers1

7

There doesn't seem to be equivalent tooling built into Win2k12, as it has been partially replaced by the Remote Desktop Management Server components, but does not give you a nice listing of sessions anywhere I've seen.

The easiest way for most users would be to use the Task Manager's User tab. you can usually boot users from there. For CLI, You can end the session via the command line, using quser and logoff (list sessions with quser, and logoff the session id you desire). you can use psexec if you need a remote cli connection to the server.

PS C:\Windows\system32> quser
 USERNAME              SESSIONNAME        ID  STATE   IDLE TIME  LOGON TIME
>SomeUser              console             1  Active      none   8/16/2015 5:29 PM
PS C:\Windows\system32> logoff <sessionID>

There are many good ideas on this thread over at serverfault as well, including power shell commands (Get-RDUserSession/Disconnect-RDUser), RDC command line utilities (qwinsta/rwinsta), and even options to make tsadmin.msc work if copied from an older server.

Or you can try a third party tool like one of these (just examples, not recommendations):

Frank Thomas
  • 37,476