Reset TS Sessions
I like to use this to prevent the dreaded "The Terminal server has exceeded maximum number of allowed connections". Call it in the wee hours of the morning via Scheduled Tasks.
REM Reset TS sessions
REM http://ts.veranoest.net/ts_faq.htm
for /f "tokens=2" %%i in ('qwinsta ^| find /i "listen"') do echo y | rwinsta %%i
change logon /enable
0 Comments:
Post a Comment
<< Home