I have a windows 10 device which is not able to connected by other Windows 10 device in the network, This PC was upgraded a computer from Windows 7 Professional to Windows 10 Professional. Now when that user attempts to remote desktop from another computer, it kicks him out after 2 minutes every time. I get two messages.
Error: The remote session ended because the total logon time limit was reached. This limit is set by the server administrator or by network policies.
My admin is not contactable at the moment so I am not sure what is policy or services is block the remote desktop connection.
I think your administrator has defined the below group policy to disconnect the remote desktop connection at specific time. Make sure the below policy is not configured, if configured change it to your need accordingly.
Open Group Policy Editor by typing gpedit.msc in search
Go to Computer Configuration, Administrative Templates, Windows Components, Remote Desktop Services, Session Time Limits.
Make sure the End session when time limits are reached is not configured
I second @tjnihal suggestions. Additional here are some alternative strategies for using a remote desktop:
Consider using a different client:
You may want to consider alternative remote desktop clients such as TeamViewer. Unlike the built-in Windows Remote Desktop Connection, TeamViewer does not impose a total logon time limit, enabling you to maintain your remote session for an unlimited duration.
Reconnect before the time limit expires:
If you prefer not to switch clients, you could reconnect to your remote session before you reach the time limit. For example, if your logon time limit is 1 hour, set a reminder to reconnect every 55 minutes.
Use a remote desktop connection broker:
A remote desktop connection broker can manage multiple remote desktop sessions. If you’re using one, you can tweak its settings to keep your remote session active indefinitely.