Ive just come across a handy utility to quickly enable or disable session logins on multiple servers – TSLogins.
TSLOGINS is a command-line tool to set the status of remote logins on Citrix or Terminal Server servers. This utility was written to replace the command CHANGE LOGON currently found in the MS Windows Operating System. This utility offers the ability to enable or disable remote sessions to a single server or host of servers located in a domain, with one command.
TSLOGINS will only function when executed by a user with ADMIN rights.
This utility is FREEWARE and was written by Warren Simondson of Ctrl-Alt-Del IT Consultancy, Australia. www.ctrl-alt-del.com.au
Usage:
TSLOGINS [/QUERY] [ /ON /OFF ] [/SERVER:servername] [/?]
/ON Enable remote user login from sessions.
/OFF Disable remote user login from sessions.
/SERVER:servername [Optional] Specifies the Terminal server to apply
the login status setting. (default is current).
/SERVER:* [Optional] Specifies ALL Terminal servers to apply
the login status setting (Applies to current Domain).
/QUERY Query the status of remote logins.
/? This help information.
TSLOGINS with no parameters displays this help information.
E.G. TSLOGINS /ON
This command will enable remote logins on the current TS or Citrix Server.
E.G. TSLOGINS /OFF
This command will disable remote logins on the current TS or Citrix Server.
Use QUSER.EXE to locate Session ID.
E.G. TSLOGINS /SERVER:MyServer /ON
This command will enable remote logins on the MyServer Server.
E.G. TSLOGINS /QUERY /SERVER:MyServer
This command will query the remote login status on the MyServer Server.
E.G. TSLOGINS /OFF /SERVER:*
This command will disable remote logins on all Citrix Servers and Terminal Servers in the current domain.
For more information and to download the above utility please visit: http://www.ctrl-alt-del.com.au/CAD_TSUtils.htm.
