Solved

Auto log off remote desktop session for non admin users

Posted on 2013-07-01
8
2,909 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
  • 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
 
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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

Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now