Automatically Log Off Disconnected User Sessions On Windows
Automatically Log Off Disconnected User Sessions On Windows
Home » Windows Tutorials » Automatically Log off Disconnected User Sessions on Windows
Many times users connect to remote Windows systems, do work, and close the remote
session without properly log off the account. In that case, multiple applications, which
are still running with that login session uses system resources. Sometimes it causes a
slow response of our servers and creates pain for us. So this will be good to auto log off
disconnected sessions from the Windows system.
This tutorial will help you to log all the disconnected remote sessions on the Windows
system. This tutorial has been tested with Windows Server 2019.
First of all, open the ‘Group Policy Editor‘ on your server. Start run window by pressing
“Win + R” and type gpedit.msc on run window. Privacy - Terms
The local group policy editor will be opened on your system. Then navigate to the
following location as the below given instructions:
Privacy - Terms
You will find a list of options on the right-side. Then Double click on “Set time limit for
disconnected sessions” to open it.
By default, it is configured a ‘Not configured. Change this to ‘Enabled. Now you will see
an option “End a disconnected session” in 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.
Conclusion
Privacy - Terms
In this tutorial, you have learned to configure your Windows system to auto log out
disconnected remote sessions.
LENUS Open
LAZULI
How to Install Nginx with PHP-FPM on How to Enable Passwordless Sudo for
CentOS 8 User in Linux
RELATED POSTS
Privacy - Terms
How to Check Computer Uptime in Windows How To Enable Multiple RDP Sessions on
August 4, 2021
Windows Server
July 20, 2021
8 COMMENTS
GPO Details:
Computer Configuration (Enabled)
Policies
Administrative Templates
Policy definitions (ADMX files) retrieved from the central store.Windows
Components/Remote Desktop Services/Remote Desktop Session Host/Session Time
Limits
Policy Setting Comment
End session when time limits are reached Enabled
Set time limit for disconnected sessions Enabled
End a disconnected session 8 hours
Privacy - Terms
User Configuration (Enabled)
No settings defined.
REPLY
It seams this not work to me. I’ve set the time to 10 minutes and running command
gpupdate /Force but no user logoff.
REPLY
LEAVE A REPLY
Your Comment
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
POST COMMENT
Privacy - Terms
LATEST ARTICLES
H t Cl Git R it I t S ifi F ld
How to Clone a Git Repository Into a Specific Folder
October 14, 2021
TAGS
Privacy - Terms