> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.trugrid.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# RemoteApp Group Policy Best Practices

## Introduction

This article lists the Group Policy settings we recommend for RDS hosts that publish apps through TruGrid RemoteApp. For each setting it explains what it does and why it matters for RemoteApp users.

TruGrid delivers the RDP connection to the RDS host. From that point on, the session is handled by Windows Remote Desktop Services on that host, exactly as it would be without TruGrid. That is why most RemoteApp session behavior, such as time limits and reconnecting, is controlled with Windows Group Policy.

| Area | Setting | Recommended value | Applies to |
| ---- | ---- | ---- | ---- |
| Time limits | Set time limit for logoff of RemoteApp sessions | Enabled, set to fit your environment (see section 1) | RDS hosts |
| Time limits | Set time limit for disconnected sessions | Enabled, set to fit your environment (see section 1) | RDS hosts |
| Time limits | Set time limit for active but idle Remote Desktop Services sessions | Enabled, set to fit your environment (see section 1) | RDS hosts |
| Time limits | End session when time limits are reached | Disabled | RDS hosts |
| Reconnecting | Restrict Remote Desktop Services users to a single Remote Desktop Services session | Enabled | RDS hosts |
| Profiles | Roaming profile solution, for example FSLogix Profile Container | One option for pools of 2 or more hosts, see section 3 | RDS hosts |
| Unlisted programs | Allow remote start of unlisted programs | Not configured, unless required (see section 4) | RDS hosts |
| Publisher warning | Specify SHA1 thumbprints of certificates representing trusted .rdp publishers | Enabled, TruGrid thumbprint | User workstations |

The time limit values depend on how your users work. Section 1 explains what each limit does so you can pick values that fit.

Printer settings are covered separately in [Granular Printer Mapping with TruGrid and Group Policy Preferences](https://help.trugrid.com/en/article/granular-printer-mapping-with-trugrid-and-group-policy-preferences-15f02q5/).


### In this article:

[Requirements ](#2-requirements)
[Create the GPO](#2-create-the-gpo)
[Session time limits ](#2-1-session-time-limits)
[Reconnecting users to their session](#2-2-reconnecting-users-to-their-session)
[User profiles across servers](#2-3-user-profiles-across-servers)
[Unlisted Programs](#2-4-unlisted-programs)
[Client side: Unverified Publisher warning](#2-5-client-side-unverified-publisher-warning)
[Verification](#2-verification)
[Troubleshooting](#2-troubleshooting)

## Requirements

* RDS hosts joined to the domain and placed in their own OU, separate from user workstations.
* Rights to create and link GPOs, and the Group Policy Management Console (RSAT).
* TruGrid RemoteApp already working, as described in [How to use RemoteApp](https://help.trugrid.com/en/article/how-to-use-remoteapp-kn0du1/).

## Create the GPO

Use two GPOs, because the settings apply to two different sets of machines:
| GPO | Link it to | Contains |
| ---- | ---- | ---- |
| TruGrid - RemoteApp Hosts | OU with the RDS hosts | Sections 1 to 4 |
| TruGrid - Trusted RDP Publisher | OU with the user workstations | Section 5 |
1. Open `gpmc.msc`.
2. Right-click the OU that holds your RDS hosts and select **Create a GPO in this domain, and Link it here**.
3. Name it **TruGrid - RemoteApp Hosts**.
4. Right-click the new GPO and select **Edit**.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/01-create-a-gpo-in-the-rds-hos_1i49hpf.png)
![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/02-name-the-gpo_1qn6y7u.png)
![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/03-edit-the-linked-gpo_n2ggfx.png)
| Almost all host settings in this article are under Computer Configuration. When the same setting is also set under User Configuration, the Computer Configuration value wins, so you do not need loopback processing for them. The one exception is Folder Redirection in section 3, which is a User Configuration setting.

## 1. Session time limits

By default a RemoteApp session never ends on its own. When a user closes the last RemoteApp window, the session stays active for about 20 seconds, then goes to a disconnected state, where it stays indefinitely. The next time the user launches a RemoteApp, Windows reconnects them to that same session with their work intact ([Microsoft](https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/remoteapp-sessions-disconnected)).

This is convenient for users, but on a busy host disconnected sessions pile up and keep using memory. Time limits keep the convenience and clean up sessions nobody comes back to.
Go to `Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits` and set:

![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/04-session-time-limits-folder_uo4iam.png)

1. **Set time limit for logoff of RemoteApp sessions:** Enabled, then pick a time in the **RemoteApp session logoff delay** list. After the user closes the last app, the session waits this long, then logs off. Opening an app within that time reconnects to the same session. A shorter value frees resources sooner, a longer one lets users come back to their open session. For example, this can be 15 to 30 minutes, enough for a user who closes an app and opens it again shortly after. Keep it shorter than the disconnected-session limit below.
2. **Set time limit for disconnected sessions:** Enabled, then pick a time in the **End a disconnected session** list. This covers sessions dropped by the network or by closing the laptop lid. When the limit is reached the session is ended and unsaved work in it is lost, so set it longer than the breaks your users usually take. For example, this can be 1 to 2 hours, which covers a lunch break or a short network outage. Use a longer limit if users expect to come back to open work the next morning, and a shorter one on busy hosts that run low on memory.
3. **Set time limit for active but idle Remote Desktop Services sessions:** Enabled. A session with no keyboard or mouse input is disconnected after this time. Users get a warning 2 minutes before. Because the session is only disconnected, not ended, this limit does not lose work, so it can be fairly short. For example, this can be 30 to 60 minutes.
4. **End session when time limits are reached:** Disabled. Idle sessions are then only disconnected, so the user can reconnect and pick up where they left off. The disconnected-session limit logs them off later.
If you set this policy to **Enabled**, sessions that reach the idle limit (or an active-session limit, if you set one) are logged off and removed from the host instead of being disconnected. Any unsaved work in them is lost. Network drops are not affected. Use Enabled when sessions must not stay on the host after the limit, for example on hosts shared by many users with little memory, or when a security policy requires idle sessions to be closed. The [TruGrid Toolkit](https://help.trugrid.com/en/article/trugrid-securerdp-windows-toolkit-1xejitj/#3-group-policy-templates) template always deploys this policy as Disabled.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/05-set-time-limit-for-logoff-o_1gists3.png)
![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/06-session-time-limits-after-c_5ute2f.png)

|| Note: the same folder also has Set time limit for active Remote Desktop Services sessions. It disconnects a session after it has been active for the set time, even while the user is working, with a 2-minute warning ([Microsoft](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc753112\(v=ws.10\))). In most cases leave it Not configured, and the TruGrid Toolkit template sets no maximum active session length. Use it only when sessions must have a hard maximum length, for example shift-based work where users must sign out at the end of a shift, or a security policy that limits how long one session can stay open. When limits overlap, the shortest one wins ([Microsoft](https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/remoteapp-sessions-disconnected)). Keep the RemoteApp logoff limit shorter than the disconnected-session limit, otherwise the disconnected-session limit ends RemoteApp sessions first. Before you shorten these limits, check with users which apps they leave open for long periods. A logoff closes the app without saving


### Deploy with the TruGrid Toolkit

The [TruGrid SecureRDP - Windows Toolkit](https://help.trugrid.com/en/article/trugrid-securerdp-windows-toolkit-1xejitj/#3-group-policy-templates) can create this GPO for you. In the Advanced view, open **Group Policy** and deploy **TruGrid - Session Time Limits**. The wizard:
* links the GPO to one OU that you select, so pick the OU with the RDS hosts;
* sets **Disconnect idle sessions after** and **Log off disconnected sessions after** to the values you choose;
* sets no maximum length for active sessions, and keeps idle sessions disconnected rather than logged off, as recommended above;
* saves a backup of the GPO to `Desktop\TruGrid Reports\gpo-backups\`.

The template does not set **Set time limit for logoff of RemoteApp sessions**, or the single-session setting from section 2. Add both to the GPO the Toolkit created, or to your own GPO, as described in this article.

## 2. Reconnecting users to their session

Resuming a disconnected session is handled by Windows Remote Desktop Services on the host, not by TruGrid. TruGrid delivers the RDP connection to the server. Once it arrives, the server decides whether the user has an existing session to reconnect to.
To make sure the server always reconnects instead of opening a second session, go to `Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections` and set:
* **Restrict Remote Desktop Services users to a single Remote Desktop Services session:** Enabled.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/07-connections-folder_uyi05g.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/08-restrict-users-to-a-single-_1n6a68l.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/09-single-session-setting-enab_174wzs3.png)

This setting works per host. Windows can only reconnect a user to a session that exists on the host the connection arrives at. A disconnected session on another host in the pool stays there until its time limit ends it.

|| Note: with this setting enabled, one user can have only one session per host. A user who opens a full desktop and a RemoteApp on the same host at the same time does not get two separate sessions, so the two connections get in each other's way. This mostly affects administrators who use both. Give administrators a separate admin account for desktop work, or leave this setting off on hosts where they need both at once.
If users do not get their session back, check in this order:
1\. The session was already ended. A short Set time limit for disconnected sessions or Set time limit for logoff of RemoteApp sessions ends sessions before the user returns. Compare the limits in section 1 with how long users are away.
2\. The user landed on a different host. Run quser /server: against each host in the pool to see where the old session is.

## 3. User profiles across servers

In a pool with two or more RDS hosts, a user can land on any of them. How their settings and files follow them depends on the profile option you use. There are three options: **FSLogix Profile Container**, **Roaming profiles with Folder Redirection**, and **Local profiles**. Which one fits depends on your environment, for example available storage, the number of hosts, and how much data users keep in their profiles.

| Option | When it fits | Pros | Cons |
| ---- | ---- | ---- | ---- |
| FSLogix Profile Container | Pools of 2 or more hosts where the full profile, including app caches, must follow the user | Profile is mounted, not copied, so sign-in stays fast. Apps see it as a local profile | Needs a file share with enough space and speed. FSLogix must be installed and kept up to date on every host. By default one profile can be used in only one session at a time |
| Roaming profiles and Folder Redirection | Environments that already use them, or users with small profiles | Built into Windows and Active Directory, no extra software. Folder Redirection keeps Documents and Desktop on a share | Profile is copied at every sign-in and sign-out, which gets slow as it grows. Signing in on two hosts at once can overwrite changes |
| Local profiles | A single RDS host, or apps that keep no user settings | Nothing to set up, fastest sign-in | Each host has its own profile, so settings and files differ between hosts. Data is lost if a host is rebuilt |

### FSLogix Profile Container

FSLogix stores each user's profile on a network share as a virtual disk and mounts it at sign-in, so apps see it as a local profile on whichever host the user lands on. Because the profile is mounted rather than copied, sign-in stays fast ([Microsoft](https://learn.microsoft.com/fslogix/overview)).

If you host FSLogix containers on a file share, note Microsoft's warning: the April 2026 Windows Server update changes the default Kerberos encryption from RC4 to AES-SHA1, and shares not upgraded to AES-SHA1 might have access issues ([Microsoft](https://learn.microsoft.com/fslogix/overview)).
FSLogix installation and its Group Policy settings are covered in a separate article.

### Roaming profiles and Folder Redirection

Roaming profiles copy the user's profile to a share at sign-out and back at sign-in. Folder Redirection moves folders such as Documents and Desktop to a share, so they are not copied at all. Use them together: redirected folders keep the roaming profile small and sign-in fast. Best practices from [Microsoft](https://learn.microsoft.com/en-IN/windows-server/storage/folder-redirection/deploy-roaming-user-profiles):
1. **Use a separate profile path for the RDS hosts.** Set it per computer, so users get a separate RDS profile and their desktop profile is not mixed in. Go to `Computer Configuration > Policies > Administrative Templates > System > User Profiles` and enable **Set roaming profile path for all users logging onto this computer**, for example `\\fileserver\RDSProfiles$\%username%`. This computer setting takes precedence over the profile path in the user's AD account.
2. **Deploy Folder Redirection first**, then roaming profiles, so existing profiles are already small when they start roaming. Folder Redirection is a User Configuration setting (`User Configuration > Policies > Windows Settings > Folder Redirection`). Because the GPO is linked to the hosts' OU, enable loopback processing in **Merge** mode in that GPO so the user settings apply on the RDS hosts. Microsoft's step-by-step guides: [Deploy Folder Redirection with Offline Files](https://learn.microsoft.com/en-us/Windows-server/storage/folder-redirection/deploy-folder-redirection) and [Loopback processing of Group Policy](https://support.microsoft.com/kb/231287).
3. **Keep all hosts on the same Windows Server version.** Each version keeps its own profile folder, and settings do not roam between versions.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/10-user-profiles-folder_13vcoy0.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/11-set-roaming-profile-path-fo_pyw3k0.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/12-roaming-profile-path-enable_1vi2a1i.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/13-folder-redirection-in-user-_7sqv6e.png)

||| Note: use a dedicated, hidden share for roaming profiles. Do not store them on the same share as redirected folders, and add $ to the share name to hide it. Also make sure the permissions on the profile share folder are set, so each user can only see their own profile: SYSTEM: Full control, applies to this folder, subfolders and files. ADMINISTRATORS: Full control, applies to this folder only. CREATOR OWNER: Full control, applies to subfolders and files only. GROUP of RemoteApp users: List folder / read data and Create folders / append data, applies to this folder only.



With local profiles each host keeps its own copy of the profile, and nothing needs to be set up. This works well for a single RDS host, or for apps that keep no user settings. On hosts with many users, old profiles take up disk space. To clean them up automatically, go to `Computer Configuration > Policies > Administrative Templates > System > User Profiles`

and enable **Delete user profiles older than a specified number of days on system restart**.

For example, this can be 30 to 60 days. Pick a value longer than the longest absence your users usually have, such as a vacation. With local profiles, a deleted profile means the user starts with a new, empty profile and loses their app settings on that host. The cleanup runs only when the host restarts, so hosts that are rarely restarted keep old profiles longer.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/14-delete-user-profiles-older-_1ia9ghl.png)
## 4. Unlisted programs

By default an RDS host only starts RemoteApp programs that are on its RemoteApp allow list. A program that is not on the list fails with the message "The following RemoteApp program is not in the list of authorized programs". Leave this default in place unless you see that error.
If you do, allow unlisted programs with Group Policy:

* Go to `Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections`
* Set **Allow remote start of unlisted programs** to **Enabled**.
* Applies to every host the GPO applies to. It is stored as `fAllowUnlistedRemotePrograms` under `HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services`
![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/image_n6b1bb.png)
![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/image_9bjjf2.png)
|| Note: with unlisted programs allowed, a user can start any executable on the host by naming its path in an .rdp file. Microsoft recommends blocking unlisted programs for that reason. Even with the block, users can still start other programs from inside a session, for example a browser from a link in a document ([Microsoft](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/ff519235\(v=ws.10\))). Use AppLocker or Windows Defender Application Control if you need to restrict what users can run.


## 5. Client side: Unverified Publisher warning

Since the April 2026 Windows update, users see an "Unverified Publisher" prompt when a RemoteApp opens. The fix is to trust TruGrid's signing certificate on the users' computers. This is the only setting in this article that goes on the **user workstations**, not on the RDS hosts.
1. Create a second GPO, **TruGrid - Trusted RDP Publisher**, linked to the OU with the user workstations.
2. Go to `Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Connection Client`
3. Enable **Specify SHA1 thumbprints of certificates representing trusted .rdp publishers** and enter TruGrid's thumbprint.
![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/16-name-the-gpo_1ooalw1.png)
![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/17-gpo-linked-to-the-workstati_cmsfn9.png)
![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/18-remote-desktop-connection-c_u7liza.png)
![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/19-specify-sha1-thumbprints-of_1uvvrq9.png)

You can also deploy this GPO with the [TruGrid SecureRDP - Windows Toolkit](https://help.trugrid.com/en/article/trugrid-securerdp-windows-toolkit-1xejitj/#3-group-policy-templates). In the Advanced view, open **Group Policy** and deploy **TruGrid - Trust Signing Certificate**. Select the OU with the **user workstations**, not the RDS hosts. The wizard links the GPO to one OU only. To cover workstations in other OUs, link the same GPO to them in GPMC with **Link an Existing GPO**.

The current thumbprint and the full steps, including a PowerShell option, are in [How to suppress the "Unverified Publisher" Security Warnings](https://help.trugrid.com/en/article/how-to-suppress-the-unverified-publisher-security-warnings-1hm5uxj/).

## Verification

Test on one RDS host before you roll out to the pool.
1. On the host, apply the policy and confirm the GPO arrived:

   ```
   gpupdate /force
   gpresult /scope computer /r

   ```
2. Check the values Windows actually uses:

   ```
   $p = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
   Get-ItemProperty -Path $p -ErrorAction SilentlyContinue |
     Select-Object MaxDisconnectionTime, MaxIdleTime, RemoteAppLogoffTimeLimit, fResetBroken, fSingleSessionPerUser, fAllowUnlistedRemotePrograms
   ```
   ![](https://storage.crisp.chat/users/helpdesk/website/-/f/4/7/3/f473d72e7d7c5000/image_1cpa6b7.png)
   Time limits are stored in milliseconds, so 1 hour shows as `3600000`.
3. Test the RemoteApp logoff limit. Launch a RemoteApp through TruGrid, close it, then run `quser` on the host. The session shows as **Disc** right after closing and disappears after the limit.
4. Test reconnecting. Launch a RemoteApp, close it, wait until `quser` shows **Disc**, then launch another RemoteApp. `quser` should show the same session ID as **Active** again.
5. On a user workstation in the second GPO, launch a RemoteApp. No Unverified Publisher prompt should appear.

## Troubleshooting

| Symptom | Likely cause | Fix |
| ---- | ---- | ---- |
| Users lose their work after a short break | Disconnected-session or RemoteApp logoff limit is shorter than the break | Raise the limits in section 1. Remember the shortest limit wins |
| Users get a new, empty session instead of their old one | The old session was already ended, or the user landed on another host | Check the limits in section 1. Run `quser /server:<hostname>` on each host to find the old session |
| Disconnected sessions pile up on the hosts | No time limits are set | Apply the limits in section 1 |
| Settings or files differ depending on the host | Local profiles on each host | Use a roaming profile solution, for example FSLogix, see section 3 |
| "The following RemoteApp program is not in the list of authorized programs" | The program is not on the host's RemoteApp allow list | See section 4 |
| "Unverified Publisher" prompt on every launch | TruGrid's certificate is not trusted on the workstation | See section 5 |
| Settings do not apply | GPO not linked to the hosts' OU, or a conflicting GPO with higher precedence | Run `gpresult /h C:\Temp\gpresult.html` on the host and check the winning GPO for each setting |

## Related articles

* [How to use RemoteApp](https://help.trugrid.com/en/article/how-to-use-remoteapp-kn0du1/)
* [How to configure RDP settings via GPO](https://help.trugrid.com/en/article/how-to-configure-rdp-settings-via-gpo-1b8hn6g/)
* [How to suppress the "Unverified Publisher" Security Warnings](https://help.trugrid.com/en/article/how-to-suppress-the-unverified-publisher-security-warnings-1hm5uxj/)
* [Granular Printer Mapping with TruGrid and Group Policy Preferences](https://help.trugrid.com/en/article/granular-printer-mapping-with-trugrid-and-group-policy-preferences-15f02q5/)
* [TruGrid SecureRDP - Group Policy Guides](https://help.trugrid.com/en/article/trugrid-securerdp-group-policy-guides-8bmmuc/)