
Hello Ganesen,
Thank you for your question and for reaching out with your question today.
In Windows Server 2019, you can configure a hard timeout for Windows authentication sessions without changing the authentication method itself. A hard timeout will automatically log out users after a specified period of inactivity. Here's how you can achieve this using Group Policy settings:
- Press
Win + R
, typegpedit.msc
, and press Enter. This will open the Group Policy Editor. - In the Group Policy Editor, navigate to
Computer Configuration -> Administrative Templates -> Windows Components -> Security Options
. - Look for the policy named "Interactive logon: Machine inactivity limit." Double-click on it to edit the policy.
- Select the "Define this policy setting" option.
- Set the desired inactivity limit in seconds. For example, to set a 30-minute inactivity timeout, calculate
30 minutes * 60 seconds/minute = 1800 seconds
To Apply the Changes:
- Close the Group Policy Editor.
- To apply the changes immediately, open a Command Prompt with administrative privileges and run the command:
gpupdate /force
.
If the reply was helpful, please don’t forget to upvote or accept as answer.