# Viewing user interactions in virtualized and embedded environments

## Overview <a href="#viewinguserinteractionsinvirtualizedandembeddedenvironments-overview" id="viewinguserinteractionsinvirtualizedandembeddedenvironments-overview"></a>

Because of the non-standard user logon process in Citrix XenApp and embedded (kiosk mode) Windows, the Collector is neither able to report user logons nor user interactions by using its default detection mechanism when running on these systems.

When installing the Collector in Citrix XenApp or in a Windows device running on kiosk mode, make sure that you set the *custom shells* option. This option tells the Collector to detect user logon events and interactions by means of an alternative mechanism.

To enable this special mode in the Collector, use either the **CUSTOM\_SHELLS** [MSI parameter](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/windows-collector-references/collector-msi-parameters-reference-table) during the installation of the Collector or the **custom\_shells** option of the [Collector configuration tool for Windows](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/windows-collector-references/collector-configuration-tool-for-windows) after it has been installed.

If you happen to install the Collector in a Citrix XenApp server, carefully read the following section.

## Session termination in Citrix XenApp <a href="#viewinguserinteractionsinvirtualizedandembeddedenvironments-sessionterminationincitrixxenapp" id="viewinguserinteractionsinvirtualizedandembeddedenvironments-sessionterminationincitrixxenapp"></a>

Because of a [known limitation of Citrix XenApp](https://support.citrix.com/article/CTX891671), in some cases a session may fail to close even after the user has gracefully logged off.

When a user logs in, the Collector spawns the *rundll32.exe* process. To avoid leaving sessions active and wasting resources, ensure that Citrix is able to close this process when the user logs off and terminates the session:

1. Log in to the Citrix XenApp server as administrator.
2. Locate the following key in the registry editor:`HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI`
3. Add the **rundll32.exe** process to the list of processes in the key value **LogoffCheckSysModules**:

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-42519161ef5689370d2faf351e64520514c3afa9%2F580px-citrix_regkey.png?alt=media" alt=""><figcaption></figcaption></figure>

***

RELATED TASKS

* [Collector MSI parameters reference table](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/windows-collector-references/collector-msi-parameters-reference-table)
