9

At our school we use thin clients that connect to a Windows 2008 R2 server using Remote Desktop Services. This works very well.

One problem we still have is the login timeout for the RDP connection. When the thin client starts up, it shows the server login screen. However, after a small amount of time (one minute or so) the RDP session disconnects and the thin client shuts down (as it is configured to do). This is a problem for teachers that are used to powering up the computer at the start of the day and logging in when they first need it.

How can we change or disable this login timeout? We have looked at the various session timeout values, but there is nothing there to help us.

jan.vdbergh
  • 311
  • 1
  • 2
  • 8

3 Answers3

12

After some more searching on Google, I managed to find a solution.

The login timeout is set in the registry, with the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

Simply add a new DWORD value for LogonTimeout, containing the timeout value in seconds. After that, restart the Terminal Services service. (If you are connected via Remote Desktop, your session will be terminated.)

jan.vdbergh
  • 311
  • 1
  • 2
  • 8
0

For those arriving at this post, looking for a solution with a Citrix Environment the same value can be used in the Citrix keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\ICA-TCP

(or ICA-SSL , ICA-CGP etc)

-1

This works on our windows 10 machines:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp

Change: SecurityLayer From: 2 To: 0

Reboot

(Should only use for internal / segregated machines for security reasons)

Thomas
  • 4,155
  • 5
  • 21
  • 28
Bash
  • 1
  • 1
  • 1
    Looking at [documentation](https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-terminalservices-rdp-winstationextensions-securitylayer) of the setting I don't see how this answer should answer the OP question, which actually was answered correctly years before by the same users which asked – ceztko Sep 07 '20 at 16:03