Solved

Auto log off remote desktop session for non admin users

Posted on 2013-07-01
8
3,016 Views
Last Modified: 2013-07-09
Hello - How can I set a windows server 2008 r2 to auto log off remote desktop session of non-admin users after say about 5mins of idle time.
0
Comment
Question by:johny911
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 

Author Comment

by:johny911
ID: 39291266
c
0
 
LVL 14

Expert Comment

by:comfortjeanius
ID: 39291319
From the Server Manager

Click -------> Roles -------> RD Session Host Configuration  ---------> Under Connectionss

Right-click ----> Properties -------> Session tab

Check "Override user settings
"Idle session limit:"

Click "Override user settings
"Disconnect from session"
Click Apply.
0
 

Author Comment

by:johny911
ID: 39291404
Sounds like this would work but would it kill the admin user session also?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 14

Accepted Solution

by:
comfortjeanius earned 250 total points
ID: 39291412
Here you can do it from group policy then

Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits


•User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits

ID: 39291404
This will more than likely affect the admins as well.

These Group Policy settings will take precedence over the settings configured in Remote Desktop Session Host Configuration, both User and Computer is set, then Computer takes precedence.
0
 

Author Comment

by:johny911
ID: 39291502
Please see attached - is this the right place to make the change?
1Capture.JPG
0
 
LVL 14

Expert Comment

by:comfortjeanius
ID: 39291529
Yes if you want to configure the user settings and not the computer.
0
 
LVL 2

Expert Comment

by:titan123
ID: 39292693
A very nice blog post for your query...

http://anandthearchitect.wordpress.com/2008/08/01/how-to-logoff-remote-desktop-sessions-via-command-line-tools/

And moreover in the command prompt you can type in this...

n cmd basically:

C:..>quser /server:localhost

USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME

adminx console 0 Active . 2013-01-21 01:10

adminx rdp-tcp#5 1 Active . 2013-01-21 15:59

C:...>logoff /server:localhost 0 /v

Logging off session ID 0

C:...>quser /server:localhost

USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME

adminx rdp-tcp#5 1 Active . 2013-01-21 15:59

C:...>

Hope it works for you.

Thanks.
0
 

Author Closing Comment

by:johny911
ID: 39310684
Accurate!!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

749 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