Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to log off all users from my terminal server (running Windows Server 2003) at 7 PM every night. What script might I use that will accomplish this? Thanks, in advance, for your help!

share|improve this question
This might help, it explains how to do part of what you are after: – SwiftAppDesign Sep 5 '12 at 22:03
Thanks for your help! – Nathan Sep 12 '12 at 19:34
up vote 1 down vote accepted

This will close all RDP (Remote Desktop) connections:

rwinsta rdp-tcp
share|improve this answer
Thanks for your help! – Nathan Sep 12 '12 at 19:33
Can this command be added to a batch file and run on schedule? Is there any concern about running this command unattended (i.e. on a schedule at night)? Thanks! – Nathan Sep 18 '12 at 20:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .