How to Keep a Session Alive in RDP
Remote Desktop Protocol (RDP) sessions can time out due to system policies or network configurations. Typically, the session timeout is 15 minutes but it could depend on your security policy. Therefore, you can reset the time limit so that the RDP session won’t be limited by time. Here are two easy ways to help you keep RDP session alive
Method 1: Configure via Group Policy Editor
- Press Win + R to open the Run dialog box Type in gpedit.msc and hit "OK" to open the Group Policy Editor.
- Navigate to:
Path:
Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits
Find the following settings on the right pane:
-
Set time limit for disconnected sessions
-
Set time limit for active but idle Remote Desktop Services session
- Set time limit for active Remote Desktop Services session

- Click on Set time limit for disconnected sessions Tick Enabled and select Never beside "End a disconnected session". Click OK.

- Click on Set time limit for active but idle Remote Desktop Services session Tick Enabled and select Never. Click OK.

- Click on Set time limit for active Remote Desktop Services session Tick Enabled and select Never. Click OK.

Method 2: Add a Registry Key
Adding a Registry key is another easy way to keep the RDP session alive.
- Press Win + R, type regedit, and press Enter to open the Registry Editor.

- Navigate to: Computer\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server > Right-click and click on “New” > “DWORD (32-bit) Value”.

- Name it KeepAliveEnable Double-click it, set the Value data to 1, tick Decimal, and click OK.


- Reboot your PC to apply the changes.
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS