Auto log off for specific users on Windows Server 2022

Edip Agirbaser 0 Reputation points
2023-05-24T13:17:59.0633333+00:00

Hello, we have one tower server that runs windows server 2022 and everyone RDPs in with their own account and they should log off after 5 minutes of inactivity. Except for one user that is in the control room and that should not log out. I tried using local policy but you can't exclude a user from it and I tried computer management -> users -> session idle log off time but it was inconsistent. I also looked into using GPO but group policy like that is for multiple computers under a domain which is not the case for this. Help on this would be appreciated. I just want all users except one to auto logoff after 5 minutes on inactivity on their RDP.

Windows for business Windows Client for IT Pros User experience Remote desktop services and terminal services
Windows for business Windows Server User experience Other
Windows for business Windows Server Devices and deployment Configure application groups
Windows for business Windows Client for IT Pros User experience Other
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 44,746 Reputation points
    2023-05-25T11:46:58.3133333+00:00
    Hello there,
    
    Local Computer Policy 
       =>  Computer Configuration 
         =>  Administrative Templates 
    	=>  Windows Components 
              =>  Remote Desktop Services 
                =>  Remote Desktop Session Host 
                  =>  Session Time Limits
    
    By default, it is set to the ‘Not configured’. Change this to ‘Enabled’. Now you will see the option “End a disconnected session” on the lower-left side. Set this value to the desired time. I have set this to 1 hour, so any disconnected user is logged off after 1 hour.
    
    Hope this resolves your Query !!
    
    --If the reply is helpful, please Upvote and Accept it as an answer--
    
    2 people found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    4 deleted comments

    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    9 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.