Citrix or Remote Desktop Service Failure to Disconnect

2 min. readlast update: 10.21.2021

View in Browser

When launching remote applications through Citrix as opposed to the entire desktop, occasionally the ThreatLocker Tray can cause the session to remain active. This results in Citrix or Remote Desktop Service failing to disconnect after closing an application. If you experience this issue, manually setting the following Windows Registry Keys should resolve it.

Editing the Windows Registry to Remediate RDP Failure to Disconnect Issue

Log in to the Windows Registry Editor as a local administrator.

Navigate to:

  1.  HKEY_LOCAL_MACHINE
  2. SYSTEM
  3. CurrentControlSet
  4. Control
  5. Terminal Server
  6. SysProcs

Within the SysProcs window, right-click and select DWORD from the dropdown menu.  

undefined

Type 'ThreatLockerTray.exe' in the textbox that appears at the bottom of the list. Items in this list are processes that can start and not impede your ability to log off your RDP session in Windows. This adds the ThreatLocker Tray to that list.

undefined

For more information, please see: "Remote Desktop session doesn't terminate -Windows Server."

Editing the Windows Registry to Remediate Citrix Failure to Disconnect Issue

Run Windows Registry Editor as a local administrator.

Navigate to:

  1.  HKEY_LOCAL_MACHINE
  2. SYSTEM
  3. CurrentControlSet
  4. Control 
  5. Citrix
  6. wfshell
  7. TWI

Within TWI, right-click and click 'String Value' in the dropdown menu. 

undefined

Type 'LogoffCheckSysModules'. Click enter, and then right-click on the new 'LogoffCheckSysModules' entry and choose 'Modify'.

undefined

In the 'Value data:' field, type 'ThreatLockerTray.exe' and then click 'OK'.

undefined

Was this article helpful?