Solved

Auto log off remote desktop session for non admin users

Posted on 2013-07-01
8
3,042 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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 2008 set profile 9 62
How to rollback Windows updates with SCCM? 6 122
SpaceMonger Issue 4 48
DNS issue. Can't add a server to a domain 23 204
I was asked if I could set up a fax machine so that incoming faxes were delivered to people's Exchange inboxes and so that they could send faxes from their desktops without needing to print the document first.  I knew it was possible but I had no id…
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 give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

734 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