[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

W2K Terminal Server Disable at set time

Posted on 2006-05-25
4
Medium Priority
?
270 Views
Last Modified: 2012-08-14
We are currently running a Windows 2000 terminal server. I would like to disconnect any users (that are connnected) at specific time (like right before we run a backup of the server). Is this possible to do with windows 2000 TS? Please provide specific steps if it can be done.
0
Comment
Question by:NTNBower
3 Comments
 
LVL 2

Expert Comment

by:dcp002
ID: 16772495
If you don't mind doing a reboot, scheduling a scheduled task:
    tsshtdn /reboot
will reboot - which very effectively gets users off !

If you don't mind  a bit of programming, you could create a batch file to :
- QUERY USER  output to a file.
- A program to process that file and create another batch file that runs
  RESET SESSION  sessionid
  for each user logged on.

Some useful information at
http://www.robvanderwoude.com/termserv.html

Maybe somebody else has something better...




0
 

Author Comment

by:NTNBower
ID: 16789248
Well, I found a bit of help on the web that helped me come to this conclusion - Aside from showing who was connected to the terminal server prior to the backup, we also came to the conclusion that we also needed to see who (better - what process) is causing my files to be skipped. I managed to find a batch script on the internet and modified it to do the following:

Check our network for all Terminal Servers (using the command C:\Query Termserver)
Once all the terminal servers are found
Loop through the servers found and lists their users and state
     (using the command C:\Query Users /Server:servername)
     loop through users found on the server above to list each users running processes
           (using the command C:\Query Process Username /Server:servername)
     next user
next server

All output is written to a log file LastNightsUsers.txt

I found the script at:
http://www.robvanderwoude.com/
His script was capable of findiding disconnected users and loggin them off, for the time being I am going to see if I can find the culprits - if it turns out that the users are loggin off, but something in the terminal server is keeping the files open, I will look at potentially kicking everyone off before the backup.
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 17027921
PAQed with points refunded (250)

CetusMOD
Community Support Moderator
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Sometimes MS breaks things just for fun... In Access 2003, only the maximum allowable SQL string length could cause problems as you built a recordset. Now, when using string data in a WHERE clause, the 'identifier' maximum is 128 characters. So, …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question