Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

We have a terminal server in our environment, where Domain\Domain Users can login through Remote Desktop. We want to force log off these users after half an hour. However Administrators (this includes Domain\Domain Admin also) should not be affected by this. They should be able to connect to terminal server with out any interruption.

Can somebody guide us about it.

Thanks upfront


share|improve this question
Just checking - do you really want to force the log-off even during an active session or did you mean after 30 minutes of inactivity? – Siim K Mar 2 '10 at 11:42
Thanks for your reply Siim K..i will check this and let you kknow..I need force log-off even during and active session for Domain Users. – Kabir Rao Mar 3 '10 at 13:11

You can achieve it through group policy: User Configuration/Administrative templates/Windows Components/Terminal Services/Sessions

And how to prevent it from applying to Administrators

share|improve this answer
I change the policy but it is getting applied to other user accounts also who are member of Administrator Group as well as another users. How ever the builtin user account Administrator remain unaffected. Please help.. – Kabir Rao Mar 5 '10 at 5:38
I want to apply these settings for only one server in our domain..for all other server things would remain same.. None of the soulutins given here will fullfill my requirement.. Does logon script provide the solution..a logon script that will run in that server only. – Kabir Rao Mar 8 '10 at 4:58

Your Answer


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.