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
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,361 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,017 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,535 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,825 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 44,221 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.