A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
A RemoteApp session disconnects based on open windows and tray icons, not on the app process. The docs say the session stays active for 20 seconds after the last RemoteApp window and user-launched tray icon close. If nothing else starts, it disconnects. A leftover window or tray icon in that session would keep it Active, so look for one on the affected pool.
A process spawned by the app can also hold the session open. The docs give splwow64.exe after printing from a 32-bit app as an example.
- Close the RemoteApp and wait 30 seconds.
- On the session host, list the processes in that user's session. Look for ones with a window or tray icon.
- Compare with the same user on a working host pool.
- If a background helper is safe to end automatically, add its name under HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Sysprocs as a REG_DWORD with value 0. Test on one host first.
What processes remain in the session after you close the app?
References:
- https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/remoteapp-sessions-disconnected
- https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/rd-or-remoteapp-session-not-terminate
If this solved it, please click Accept Answer and upvote so others with the same problem can find it.