terminal services logoff - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
Thread Tools Display Modes
Old 08-16-2005, 04:38 PM   #1 (permalink)
Newb Techie
Join Date: Aug 2005
Posts: 3
Default terminal services logoff

does anybody know how to end all sessions from terminal services at specific time(say for backup) and dis allow them to log back in other than: write a small cmd
1. change logon /disable
2. reset session 1
3. reset session 2...
and so on then puting it in schedule tasks and then writing another cmd changing the log on to enable?
please help I know there is an easier way and maybe even send them a warning or something?

LilGenie is offline  
Old 08-17-2005, 01:42 AM   #2 (permalink)
Master Techie
Join Date: Feb 2004
Posts: 2,172
Send a message via AIM to Win2kpatcher

Hello! and welcome to the site! As for your requests I can help you with the disconect part, but it sounds like you may already be familiar. You have a couple options. The first being setting this up in Active Directory via the Terminal Services Configuration. The other would be to write a small script with the "Tsdiscon" command.

You should be running your backups after hours though when no one is present then when you disconect the session you wont have to worry about anyone logging on. The way I have it setup on our server is a scheduled task that point to the .bat file I created telling it to disconnect each session. I am sure there is some better commands out there.

Win2kpatcher is offline  
Old 08-17-2005, 12:37 PM   #3 (permalink)
Newb Techie
Join Date: Aug 2005
Posts: 3

thanks for the reply win2kpatcher,
the way you describe is the way that I'm doing it now I just thought that there was an easier way with out using scheduled tasks. As for runing backup when no one is present I simply cant do that because I have people accecing the server 24/7 and they have been told to end their sessions from 11:00 to 11:30 but as you may know some people have to do it the hard way.
anyways thanks
LilGenie is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 11:31 AM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.