SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


tssessions
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tssessions [2013/04/21 20:34] (current)
sjoerd created
Line 1: Line 1:
 += Terminal Server Session Management =
 +
 +To check the sessions on a Windows Server 2008 Terminal Server do this:
 +
 +* Start Server Manager (either right click Computer and select Manage, or start Server Manager from Start -> All Programs -> Administrative Tools -> Server Manager)
 +* Expand the Roles, and go to the Terminal Services role.
 +* Select the Terminal Services Manager
 +
 +There are three tabs: users, sessions and processes: \\
 +{{tssessions01.jpg}} \\
 +
 +== Through the Command Line ==
 +Of course you can also check for logged on users/​sessions using commands:
 +<​code>​
 +C:​\Documents and Settings\sjoerd>​psexec \\server01 query session
 +
 +PsExec v1.55 - Execute processes remotely
 +Copyright (C) 2001-2004 Mark Russinovich
 +Sysinternals - www.sysinternals.com
 +
 +
 + ​SESSIONNAME ​      ​USERNAME ​                ​ID ​ STATE   ​TYPE ​       DEVICE
 +>                                            0  Disc    rdpwd
 + ​ica-tcp ​                                ​65536 ​ Listen ​ wdica
 + ​rdp-tcp ​                                ​65537 ​ Listen ​ rdpwd
 + ​console ​                                    ​5 ​ Conn    wdcon
 + ​ica-tcp#​104 ​      ​user123 ​                  ​2 ​ Active ​ wdica
 + ​ica-tcp#​106 ​                                ​1 ​ Conn    wdica
 +query exited on server01 with error code 1.
 +
 +C:​\Documents and Settings\sjoerd>​psexec \\server01 query user
 +
 +PsExec v1.55 - Execute processes remotely
 +Copyright (C) 2001-2004 Mark Russinovich
 +Sysinternals - www.sysinternals.com
 +
 +
 + ​USERNAME ​             SESSIONNAME ​       ID  STATE   IDLE TIME  LOGON TIME
 + ​user123 ​              ​ica-tcp#​104 ​        ​2 ​ Active ​         .  6/26/2012 8:27 AM
 +query exited on server01 with error code 1.
 +</​code>​
 +
 += Enable/​Disable logons =
 +
 +You can enable / disable logons on terminal servers like this:
 +<​code>​
 +change logon /enable
 +change logon /disable
 +</​code>​
 +Query the current setting:
 +<​code>​
 +change logon /query
 +</​code>​
 +If you have [[http://​www.sysinternals.com|sysinternals]] installed you can do it from remote as well:
 +<​code>​
 +C:​\Documents and Settings\sjoerd>​psexec \\<​servername>​ change logon disable
 +PsExec v1.55 - Execute processes remotely
 +Copyright (C) 2001-2004 Mark Russinovich
 +Sysinternals - www.sysinternals.com
 +
 +
 +Session logins are currently DISABLED
 +change exited on <​servername>​ with error code 1.
 +</​code>​
 +
 +
 +{{tag>​windows tscitrix}}
  
tssessions.txt ยท Last modified: 2013/04/21 20:34 by sjoerd