Solved

Auto log off remote desktop session for non admin users

Posted on 2013-07-01
8
2,954 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

786 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