Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
This might help, it explains how to do part of what you are after: itknowledgeexchange.techtarget.com/itanswers/server-2003-2 –  SwiftAppDesign Sep 5 '12 at 22:03
    
Thanks for your help! –  Nathan Sep 12 '12 at 19:34
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.