[thelist] Free Tip - This is a must read!

Joshua Olson joshua at waetech.com
Wed Mar 19 14:52:18 CST 2003


<tip type="Remote Administration" author="Joshua Olson">
If you remotely admin a server via Terminal Services then you know that
having TS run out of connections is a real pain in the butt.  Even if you
log off religiously you are bound to try to connect one day just to be faced
with the rude message that it's out of connections.

There's a command line utility to reset TS connections.  Syntax:

RESET SESSION #

Here's how to execute it in CF to clear some connections::

<!--- reset_ts.cfm --->

<cfexecute name="reset" arguments="session 1"></cfexecute>
<cfexecute name="reset" arguments="session 2"></cfexecute>
<cfexecute name="reset" arguments="session 3"></cfexecute>
<cfexecute name="reset" arguments="session 4"></cfexecute>
<cfexecute name="reset" arguments="session 5"></cfexecute>
<cfexecute name="reset" arguments="session 6"></cfexecute>
<cfexecute name="reset" arguments="session 7"></cfexecute>
<cfexecute name="reset" arguments="session 8"></cfexecute>

Put this cfm file somewhere protected and execute it when you need to reset
at least the first 8 TS connections.

It should be simple to do something similar in ASP.
</tip>

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168



More information about the thelist mailing list