Link to home
Start Free TrialLog in
Avatar of tgfo62
tgfo62

asked on

Need a batch file

I currently have about 25 users that access our terminal server.  Unfortunately I cannot get them to log off properly which bogs down my system.

Can anyone write me a batch file that will log off the user on the terminal server when they are finished.  Basically I'm looking for something that i can have the user click on the desktop that will log them off and close their session.

Thanks
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Why not just put an idle time out on their accounts that automatically logs them off?
Why don't you set a time limit on a disconnected session?  It would disconnect and free the resources after a user has disconnected for X minutes.  You can do with Group Policy for instance:

"Sets time limit for disconnected sessions - This policy is found under both Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Sessions and User Configuration\Administrative Templates\Windows Components\Terminal Services\Sessions and it can be used in conjunction of the previous policy above to help enhance your Terminal server's performance. By configuring disconnected sessions to time out after a short period of time, you can ensure that resources are released for your server when a Terminal Services user no longer requires them. Note that this setting has no effect on console or Remote Desktop sessions. "


http://www.wown.com/articles_tutorials/Terminal-Services-Group-Policy.html
Avatar of tgfo62
tgfo62

ASKER

because the users can be normally idle for anytime of period however, they forget how to log off properly when they leave the mobile unit- that's my problem
ASKER CERTIFIED SOLUTION
Avatar of 2hype
2hype
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tgfo62

ASKER

not exactly what I asked for, but it is working so thanks!