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:
- HKEY_LOCAL_MACHINE
- SYSTEM
- CurrentControlSet
- Control
- Terminal Server
- SysProcs
Within the SysProcs window, right-click and select DWORD from the dropdown menu.
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.
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:
- HKEY_LOCAL_MACHINE
- SYSTEM
- CurrentControlSet
- Control
- Citrix
- wfshell
- TWI
Within TWI, right-click and click 'String Value' in the dropdown menu.
Type 'LogoffCheckSysModules'. Click enter, and then right-click on the new 'LogoffCheckSysModules' entry and choose 'Modify'.
In the 'Value data:' field, type 'ThreatLockerTray.exe' and then click 'OK'.