Troubleshooting App Protection Posture Check

The following section describes some of the issues that you might face and how to troubleshoot them:

The session terminated without any error message

If your virtual app or desktop session terminates abruptly without displaying any error message, then do the following steps:

  1. Check if your Citrix Workspace app version is earlier than one of the following versions:

    • Citrix Workspace app for Windows 2309
    • Citrix Workspace app for Mac 2308
    • Citrix Workspace app for Linux 2308

    Note:

    If the Citrix Workspace app version is earlier than the versions listed in step 1 and the App Protection Posture Check feature is enabled, then the virtual app or desktop session terminates without displaying any error message. However, if the Citrix Workspace app version is greater than or equal to the versions listed in step 1 and the App Protection Posture Check feature is enabled, then the virtual apps or desktop session terminates displaying an error message.

  2. Check whether the App Protection Posture Check feature is enabled.

  3. If the Citrix Workspace app version is greater than or equal to the preceding versions and the Posture Check feature is also active, then collect the logs and contact Citrix Technical Support. For more information about collecting logs, see Log collection.

App Protection Posture Check is enabled but the session is not terminated for older versions

Generally, if the App Protection Posture Check feature is enabled and you are connecting through an older version of Citrix Workspace app, then the session must be terminated.

But if the session is not terminated, then do the following steps:

  1. In the Virtual Delivery Agent, do the following:

    1. Run the following command and check if the ctxappprotectionsvc service is running:

      sc query ctxappprotectionsvc

    2. If the ctxappprotectionsvc service is not running, then do the following steps to start the service:

      1. Change the startup type of the ctxappprotectionsvc service to automatic by running the following command:

        sc config ctxappprotectionsvc start=auto

      2. Start the service by running the following command:

        sc start ctxappprotectionsvc

  2. Check if the Posture Check values that you have entered have one of the following prefixes:

    • For Citrix Workspace app for Windows, windows-
    • For Citrix Workspace app for Linux, linux-
    • For Citrix Workspace app for Mac, mac-
  3. Check if the Posture Check values are correctly added as per the relevant platform as they are platform-specific.

  4. Check the reg location (Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Citrix\AppProtectionPolicies) to verify if the Posture Check is synced with the Virtual Delivery Agent.

  5. If all the preceding conditions are met and the session is still connected for the older versions of Citrix Workspace app, then collect the logs and contact Citrix Technical Support. For more information about collecting logs, see Log collection.

App Protection Posture Check is working on one platform but not working on another

Sometimes, the App Protection Posture Check feature might work on one platform and not on another. For example, the App Protection Posture Check feature is working on Citrix Workspace app for Windows but not on Citrix Workspace app for Linux.

In scenarios like these, do the following steps:

  1. Check if the Posture Check values that you have entered have one of the following prefixes:

    • For Citrix Workspace app for Windows, windows-
    • For Citrix Workspace app for Linux, linux-
    • For Citrix Workspace app for Mac, mac-
  2. Check if the Posture Check values are correctly added as per the relevant platform as they are platform-specific.

  3. Check the reg location (Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Citrix\AppProtectionPolicies) on the Virtual Delivery Agent to verify if the Posture Check is synced with the Virtual Delivery Agent. They must match with what was configured on Studio.

  4. If all the preceding conditions are met and the session is still connected for the older versions of Citrix Workspace app, then collect the logs and contact Citrix Technical Support. For more information about collecting logs, see Log collection.

Troubleshooting App Protection Posture Check