Azure Virtual Desktop: RemoteApp Sessions Not Disconnecting

Katie-0688 0 Reputation points
2026-11-05T13:46:41.69+00:00

Problem description

I am experiencing an issue with my Azure Virtual Desktop environment where RemoteApp sessions do not disconnect as expected. Specifically, when users close published applications like ArcGIS or FME Workbench, the application windows close, but the user sessions on the session host do not transition to 'Disconnected'. Instead, they remain in the 'Active' state, preventing the automatic logoff behavior that is supposed to occur when sessions are disconnected.

Environment

Azure Virtual Desktop host pool publishing RemoteApps, using T4 GPU-based VMs, affecting Windows 10 and Windows 11 session hosts, located in an unspecified region.

What I've already tried

I have updated the affected session hosts to the latest updates, including Windows and the Azure Virtual Desktop agent. I also updated Windows App to the latest version. I verified that the published application processes are fully closed after exit, and I compared behaviors under different exit conditions, such as shutting down the client device or logging out, which do result in session disconnection. Additionally, I confirmed that the issue is limited to one host pool and does not occur in others. No error messages or codes have been reported, and no changes to session timeout policies or scaling plans seem to influence the behavior.

Current status

I am seeking guidance on identifying why sessions remain active after closing RemoteApps and how to ensure they transition to 'Disconnected' to trigger automatic logoff. Any suggestions on troubleshooting steps or configuration adjustments to resolve this issue would be appreciated.

Azure Virtual Desktop
Azure Virtual Desktop

A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.


1 answer

Sort by: Most helpful
  1. Sedat SALMAN 14,535 Reputation points MVP
    2026-11-09T17:07:39+00:00

    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.

    1. Close the RemoteApp and wait 30 seconds.
    2. On the session host, list the processes in that user's session. Look for ones with a window or tray icon.
    3. Compare with the same user on a working host pool.
    4. 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:

    If this solved it, please click Accept Answer and upvote so others with the same problem can find it.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.