question

cenh avatar image
0 Votes"
cenh asked ·

Remote Desktop timeouts and then remote machine has restarted

I have a problem with working remotely. I have a machine sitting in my office, and I remote to it using a laptop I have at home.

I can remote to it fine, but usually after about an hour I get kicked out of the machine (citing timeout or no response to remote machine).

After a couple of minutes I remote to it again, and everything I had going on is no longer running (seems as though it has restarted).

I check update history, and it hasn't updated Windows. I look in the Event Viewer and I see:

73668-microsoftteams-image.png

Mind you, this does not happen when I work on-prem and use the machine directly, it only happens through remote work.

What can I do to fix this?


windows-remote-desktop-client
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
we are looking forward to your reply and ready for help.
---If the suggestions above are helpful, please ACCEPT ANSWER. Really appreciate. This will also help others with similar issue to find this post quickly. ---

0 Votes 0 ·

Hi,

if the suggestions above are helpful, please click ACCEPT ANSWER. Really appreciate. This will also help others with same issue to find this post quickly.

0 Votes 0 ·

1 Answer

GraceHE-MSFT avatar image
0 Votes"
GraceHE-MSFT answered ·

Hi,

Thank you for posting your query. With the issue description, here are some suggestions. And I would appreciate if you can help me with more information.

  1. what is the version of your session host and client machine?

  2. Using the quser command, you can view when a user RDP session was started, how long it was idle and the current session state.
    ![74149-image.png][1]

  3. Please try to check and set the "Session Time Limits" policies
    If you use an RDS server, you can configure session timeout parameters in the RDS collection settings on the Session tab.
    ![74105-image.png][2]

You can also set the limits of an RDP session in the properties of a local (lusrmgr.msc) or domain user (dsa.msc — Active Directory Users and Computers).
![74130-image.png][3]

In Windows Server 2012 R2/2016/2019, you can set RDP session timeouts using Group Policies. You can do it either in the domain GPO editor (gpmc.msc) or in the Local Group Policy Editor (gpedit.msc) on an RDS server or client.
Computer Configuration -> Policies -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Session Time Limits.
![74201-image.png][4]

In Windows Server 2008 R2, you could also set RDP session timeouts using a special console: tsconfig.msc (RD Session Host Configuration).
![74187-image.png][5]

--- if the suggestions above are helpful, please click ACCEPT ANSWER. Really appreciate. This will also help others with same issue to find this post quickly.---
[1]: /answers/storage/attachments/74149-image.png
[2]: /answers/storage/attachments/74105-image.png
[3]: /answers/storage/attachments/74130-image.png
[4]: /answers/storage/attachments/74201-image.png
[5]: /answers/storage/attachments/74187-image.png


image.png (18.7 KiB)
image.png (42.7 KiB)
image.png (56.3 KiB)
image.png (123.7 KiB)
image.png (129.7 KiB)
·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.